parisc: Move store_cpu_topology() into text section
authorHelge Deller <deller@gmx.de>
Fri, 25 Mar 2022 11:50:13 +0000 (12:50 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 29 Mar 2022 19:37:12 +0000 (21:37 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/topology.c

index 8fce9a5..9696e3c 100644 (file)
 #include <linux/cpu.h>
 
 #include <asm/topology.h>
+#include <asm/sections.h>
 
 static DEFINE_PER_CPU(struct cpu, cpu_devices);
 
-static int dualcores_found __initdata;
+static int dualcores_found;
 
 /*
  * store_cpu_topology is called at boot when only one cpu is running
  * and with the mutex cpu_hotplug.lock locked, when several cpus have booted,
  * which prevents simultaneous write access to cpu_topology array
  */
-void __init store_cpu_topology(unsigned int cpuid)
+void store_cpu_topology(unsigned int cpuid)
 {
        struct cpu_topology *cpuid_topo = &cpu_topology[cpuid];
        struct cpuinfo_parisc *p;