parisc: Move CPU startup-related functions into .text section
authorHelge Deller <deller@gmx.de>
Sat, 26 Mar 2022 14:10:54 +0000 (15:10 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 29 Mar 2022 19:37:12 +0000 (21:37 +0200)
If CONFIG_HOTPLUG_CPU is enabled, those functions will be run again
after bootup. So they need to reside in the .text section.

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

index d41fee3a98746ffbc21b27510fbeeeffac00a1ef..23348199f3f8060e130b17819b2703b635928a52 100644 (file)
@@ -273,7 +273,7 @@ parisc_cache_init(void)
        }
 }
 
-void __init disable_sr_hashing(void)
+void disable_sr_hashing(void)
 {
        int srhash_type, retval;
        unsigned long space_bits;
index 928ce9dbc7388e9de413b36141f21f62dd2d9858..0fe2d79fb123fa76f4ef0ad916f7707e462c8561 100644 (file)
@@ -563,7 +563,7 @@ static void claim_cpu_irqs(void)
 #endif
 }
 
-void __init init_IRQ(void)
+void init_IRQ(void)
 {
        local_irq_disable();    /* PARANOID - should already be disabled */
        mtctl(~0UL, 23);        /* EIRR : clear all pending external intr */
index f48823eba75ff177263dbebce568ac1711436e0a..d98692115221a119579a9eec8782db87a194f85c 100644 (file)
@@ -318,7 +318,7 @@ void __init collect_boot_cpu_data(void)
  *
  * o Enable CPU profiling hooks.
  */
-int __init init_per_cpu(int cpunum)
+int init_per_cpu(int cpunum)
 {
        int ret;
        struct pdc_coproc_cfg coproc_cfg;
index 061119a56fbe81b0a64540de3ff6d2596f5ec112..874b128c5783b442827c555ab789d86198c4e03c 100644 (file)
@@ -150,7 +150,7 @@ static struct clocksource clocksource_cr16 = {
        .flags                  = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
-void __init start_cpu_itimer(void)
+void start_cpu_itimer(void)
 {
        unsigned int cpu = smp_processor_id();
        unsigned long next_tick = mfctl(16) + clocktick;