]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
parisc: Move cache flush functions into .text.hot section
authorHelge Deller <deller@gmx.de>
Tue, 10 Apr 2018 16:55:13 +0000 (18:55 +0200)
committerHelge Deller <deller@gmx.de>
Wed, 11 Apr 2018 09:40:35 +0000 (11:40 +0200)
and move the disable_sr_hashing() C and assembly functions into the
.init section.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c
arch/parisc/kernel/pacache.S

index a99da95fc9fde89fc599e65868ae1bc5170777dc..bddd2acebdcc85dc4dd86765eaa43352c67143f4 100644 (file)
@@ -254,7 +254,7 @@ parisc_cache_init(void)
        }
 }
 
-void disable_sr_hashing(void)
+void __init disable_sr_hashing(void)
 {
        int srhash_type, retval;
        unsigned long space_bits;
index 67b0f7532e835f4db1214c6ccecf62183eb84e50..22e6374ece4417e76fa91ed196973f6df2356f48 100644 (file)
 #include <asm/cache.h>
 #include <asm/ldcw.h>
 #include <linux/linkage.h>
+#include <linux/init.h>
 
-       .text
-       .align  128
+       .section .text.hot
+       .align  16
 
 ENTRY_CFI(flush_tlb_all_local)
        .proc
@@ -328,8 +329,6 @@ fdsync:
        .procend
 ENDPROC_CFI(flush_data_cache_local)
 
-       .align  16
-
 /* Macros to serialize TLB purge operations on SMP.  */
 
        .macro  tlb_lock        la,flags,tmp
@@ -1216,6 +1215,8 @@ ENTRY_CFI(flush_kernel_icache_range_asm)
        .procend
 ENDPROC_CFI(flush_kernel_icache_range_asm)
 
+       __INIT
+
        /* align should cover use of rfi in disable_sr_hashing_asm and
         * srdis_done.
         */