mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 14:14:24 +08:00
gameport: use this_cpu_read instead of lookup
Signed-off-by: Christoph Lameter <cl@linux.com> Acked-by: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
357089fca9
commit
55ee4ef302
@ -123,7 +123,7 @@ static int gameport_measure_speed(struct gameport *gameport)
|
||||
}
|
||||
|
||||
gameport_close(gameport);
|
||||
return (cpu_data(raw_smp_processor_id()).loops_per_jiffy *
|
||||
return (this_cpu_read(cpu_info.loops_per_jiffy) *
|
||||
(unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user