summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/processor.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2008-12-31 03:12:10 +0000
committerKyle McMartin <kyle@mcmartin.ca>2009-01-05 19:09:02 +0000
commitef017bebd01c1b4e075d649eee0c8c1c79f9ceb9 (patch)
tree56643af889719538c1cbade6dfe5b7cefb1d0ffa /arch/parisc/include/asm/processor.h
parent7f2347a44d2d5c8edf04d6950f4fb21ac868d256 (diff)
downloadop-kernel-dev-ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9.zip
op-kernel-dev-ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9.tar.gz
parisc: Replace NR_CPUS in parisc code
parisc: Replace most arrays sized by NR_CPUS with percpu variables. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/processor.h')
-rw-r--r--arch/parisc/include/asm/processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index 3c9d348..9d64df8 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
@@ -17,6 +17,7 @@
#include <asm/ptrace.h>
#include <asm/types.h>
#include <asm/system.h>
+#include <asm/percpu.h>
#endif /* __ASSEMBLY__ */
#define KERNEL_STACK_SIZE (4*PAGE_SIZE)
@@ -109,8 +110,7 @@ struct cpuinfo_parisc {
};
extern struct system_cpuinfo_parisc boot_cpu_data;
-extern struct cpuinfo_parisc cpu_data[NR_CPUS];
-#define current_cpu_data cpu_data[smp_processor_id()]
+DECLARE_PER_CPU(struct cpuinfo_parisc, cpu_data);
#define CPU_HVERSION ((boot_cpu_data.hversion >> 4) & 0x0FFF)
OpenPOWER on IntegriCloud