Skip to content

Commit 2a03bb9

Browse files
committed
parisc: Move cache flush functions into .text.hot section
and move the disable_sr_hashing() C and assembly functions into the .init section. Signed-off-by: Helge Deller <[email protected]>
1 parent 75abf64 commit 2a03bb9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

arch/parisc/kernel/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ parisc_cache_init(void)
254254
}
255255
}
256256

257-
void disable_sr_hashing(void)
257+
void __init disable_sr_hashing(void)
258258
{
259259
int srhash_type, retval;
260260
unsigned long space_bits;

arch/parisc/kernel/pacache.S

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
#include <asm/cache.h>
3939
#include <asm/ldcw.h>
4040
#include <linux/linkage.h>
41+
#include <linux/init.h>
4142

42-
.text
43-
.align 128
43+
.section .text.hot
44+
.align 16
4445

4546
ENTRY_CFI(flush_tlb_all_local)
4647
.proc
@@ -328,8 +329,6 @@ fdsync:
328329
.procend
329330
ENDPROC_CFI(flush_data_cache_local)
330331

331-
.align 16
332-
333332
/* Macros to serialize TLB purge operations on SMP. */
334333

335334
.macro tlb_lock la,flags,tmp
@@ -1216,6 +1215,8 @@ ENTRY_CFI(flush_kernel_icache_range_asm)
12161215
.procend
12171216
ENDPROC_CFI(flush_kernel_icache_range_asm)
12181217

1218+
__INIT
1219+
12191220
/* align should cover use of rfi in disable_sr_hashing_asm and
12201221
* srdis_done.
12211222
*/

0 commit comments

Comments
 (0)