mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
7f2347a44d
commit
ef017bebd0
8 changed files with 64 additions and 59 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue