summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2010-12-16 12:15:15 -0600
committerTejun Heo <tj@kernel.org>2011-01-04 06:09:10 +0100
commit55ee4ef30241a62b700f79517e6d5ef2ddbefa67 (patch)
tree5aba22e3f622df7878fc4b1ba1653c50ff5df376 /drivers/input
parent357089fca91f639dd005ae0721f5f932b4f276ab (diff)
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')
-rw-r--r--drivers/input/gameport/gameport.c2
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