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 <deller@gmx.de>
This commit is contained in:
@@ -254,7 +254,7 @@ parisc_cache_init(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void disable_sr_hashing(void)
|
void __init disable_sr_hashing(void)
|
||||||
{
|
{
|
||||||
int srhash_type, retval;
|
int srhash_type, retval;
|
||||||
unsigned long space_bits;
|
unsigned long space_bits;
|
||||||
|
|||||||
@@ -38,9 +38,10 @@
|
|||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <asm/ldcw.h>
|
#include <asm/ldcw.h>
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
|
||||||
.text
|
.section .text.hot
|
||||||
.align 128
|
.align 16
|
||||||
|
|
||||||
ENTRY_CFI(flush_tlb_all_local)
|
ENTRY_CFI(flush_tlb_all_local)
|
||||||
.proc
|
.proc
|
||||||
@@ -328,8 +329,6 @@ fdsync:
|
|||||||
.procend
|
.procend
|
||||||
ENDPROC_CFI(flush_data_cache_local)
|
ENDPROC_CFI(flush_data_cache_local)
|
||||||
|
|
||||||
.align 16
|
|
||||||
|
|
||||||
/* Macros to serialize TLB purge operations on SMP. */
|
/* Macros to serialize TLB purge operations on SMP. */
|
||||||
|
|
||||||
.macro tlb_lock la,flags,tmp
|
.macro tlb_lock la,flags,tmp
|
||||||
@@ -1216,6 +1215,8 @@ ENTRY_CFI(flush_kernel_icache_range_asm)
|
|||||||
.procend
|
.procend
|
||||||
ENDPROC_CFI(flush_kernel_icache_range_asm)
|
ENDPROC_CFI(flush_kernel_icache_range_asm)
|
||||||
|
|
||||||
|
__INIT
|
||||||
|
|
||||||
/* align should cover use of rfi in disable_sr_hashing_asm and
|
/* align should cover use of rfi in disable_sr_hashing_asm and
|
||||||
* srdis_done.
|
* srdis_done.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user