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:

committed by
Kyle McMartin

parent
7f2347a44d
commit
ef017bebd0
@@ -60,7 +60,7 @@ irqreturn_t timer_interrupt(int irq, void *dev_id)
|
||||
unsigned long cycles_elapsed, ticks_elapsed;
|
||||
unsigned long cycles_remainder;
|
||||
unsigned int cpu = smp_processor_id();
|
||||
struct cpuinfo_parisc *cpuinfo = &cpu_data[cpu];
|
||||
struct cpuinfo_parisc *cpuinfo = &per_cpu(cpu_data, cpu);
|
||||
|
||||
/* gcc can optimize for "read-only" case with a local clocktick */
|
||||
unsigned long cpt = clocktick;
|
||||
@@ -213,7 +213,7 @@ void __init start_cpu_itimer(void)
|
||||
|
||||
mtctl(next_tick, 16); /* kick off Interval Timer (CR16) */
|
||||
|
||||
cpu_data[cpu].it_value = next_tick;
|
||||
per_cpu(cpu_data, cpu).it_value = next_tick;
|
||||
}
|
||||
|
||||
struct platform_device rtc_parisc_dev = {
|
||||
|
Reference in New Issue
Block a user