aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHelge Deller2022-03-25 12:50:13 +0100
committerHelge Deller2022-03-29 21:37:12 +0200
commit95370b4031ec67f9749e5873ae7139a53cc6bf53 (patch)
tree7428a3f0a5778693db0419dadfc22b99c78673a6 /arch
parent62773112acc55d29727465d075fc61ed08a0a532 (diff)
parisc: Move store_cpu_topology() into text section
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/kernel/topology.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/parisc/kernel/topology.c b/arch/parisc/kernel/topology.c
index 8fce9a5350ef..9696e3cb6a2a 100644
--- a/arch/parisc/kernel/topology.c
+++ b/arch/parisc/kernel/topology.c
@@ -16,17 +16,18 @@
#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;