diff options
author | Christoph Lameter <cl@linux.com> | 2010-12-16 21:15:15 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-01-04 08:09:10 +0300 |
commit | 55ee4ef30241a62b700f79517e6d5ef2ddbefa67 (patch) | |
tree | 5aba22e3f622df7878fc4b1ba1653c50ff5df376 /drivers/input/gameport/gameport.c | |
parent | 357089fca91f639dd005ae0721f5f932b4f276ab (diff) | |
download | linux-55ee4ef30241a62b700f79517e6d5ef2ddbefa67.tar.xz |
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>
Diffstat (limited to 'drivers/input/gameport/gameport.c')
-rw-r--r-- | drivers/input/gameport/gameport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index 46239e47a260..88d13f170432 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c @@ -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 |