diff options
author | Christoph Lameter <cl@linux.com> | 2010-12-16 12:15:15 -0600 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-01-04 06:09:10 +0100 |
commit | 55ee4ef30241a62b700f79517e6d5ef2ddbefa67 (patch) | |
tree | 5aba22e3f622df7878fc4b1ba1653c50ff5df376 | |
parent | 357089fca91f639dd005ae0721f5f932b4f276ab (diff) | |
download | linux-3.10-55ee4ef30241a62b700f79517e6d5ef2ddbefa67.tar.gz linux-3.10-55ee4ef30241a62b700f79517e6d5ef2ddbefa67.tar.bz2 linux-3.10-55ee4ef30241a62b700f79517e6d5ef2ddbefa67.zip |
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>
-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 46239e47a26..88d13f17043 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 |