diff options
-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) | |||
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 |