diff options
author | Helge Deller <deller@gmx.de> | 2008-12-31 03:12:10 +0000 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2009-01-05 19:09:02 +0000 |
commit | ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9 (patch) | |
tree | 56643af889719538c1cbade6dfe5b7cefb1d0ffa /arch/parisc/kernel/time.c | |
parent | 7f2347a44d2d5c8edf04d6950f4fb21ac868d256 (diff) | |
download | linux-ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9.tar.gz linux-ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9.tar.bz2 linux-ef017bebd01c1b4e075d649eee0c8c1c79f9ceb9.zip |
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/kernel/time.c')
-rw-r--r-- | arch/parisc/kernel/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index 4d09203bc693..9d46c43a4152 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -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 = { |