mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
committed by
Kyle McMartin
parent
7f2347a44d
commit
ef017bebd0
@@ -541,9 +541,9 @@ static int __init perf_init(void)
|
||||
spin_lock_init(&perf_lock);
|
||||
|
||||
/* TODO: this only lets us access the first cpu.. what to do for SMP? */
|
||||
cpu_device = cpu_data[0].dev;
|
||||
cpu_device = per_cpu(cpu_data, 0).dev;
|
||||
printk("Performance monitoring counters enabled for %s\n",
|
||||
cpu_data[0].dev->name);
|
||||
per_cpu(cpu_data, 0).dev->name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user