aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2010-12-16 13:15:15 -0500
committerTejun Heo <tj@kernel.org>2011-01-04 00:09:10 -0500
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 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)
123 } 123 }
124 124
125 gameport_close(gameport); 125 gameport_close(gameport);
126 return (cpu_data(raw_smp_processor_id()).loops_per_jiffy * 126 return (this_cpu_read(cpu_info.loops_per_jiffy) *
127 (unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx); 127 (unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);
128 128
129#else 129#else