提交 55ee4ef3 编写于 作者: C Christoph Lameter 提交者: Tejun Heo

gameport: use this_cpu_read instead of lookup

Signed-off-by: NChristoph Lameter <cl@linux.com>
Acked-by: N"H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 357089fc
...@@ -123,7 +123,7 @@ static int gameport_measure_speed(struct gameport *gameport) ...@@ -123,7 +123,7 @@ static int gameport_measure_speed(struct gameport *gameport)
} }
gameport_close(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); (unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册