Skip to content

Commit 95370b4

Browse files
committed
parisc: Move store_cpu_topology() into text section
Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 6277311 commit 95370b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/parisc/kernel/topology.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616
#include <linux/cpu.h>
1717

1818
#include <asm/topology.h>
19+
#include <asm/sections.h>
1920

2021
static DEFINE_PER_CPU(struct cpu, cpu_devices);
2122

22-
static int dualcores_found __initdata;
23+
static int dualcores_found;
2324

2425
/*
2526
* store_cpu_topology is called at boot when only one cpu is running
2627
* and with the mutex cpu_hotplug.lock locked, when several cpus have booted,
2728
* which prevents simultaneous write access to cpu_topology array
2829
*/
29-
void __init store_cpu_topology(unsigned int cpuid)
30+
void store_cpu_topology(unsigned int cpuid)
3031
{
3132
struct cpu_topology *cpuid_topo = &cpu_topology[cpuid];
3233
struct cpuinfo_parisc *p;

0 commit comments

Comments
 (0)