From: Christoph Lameter Date: Thu, 16 Dec 2010 18:15:15 +0000 (-0600) Subject: gameport: use this_cpu_read instead of lookup X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=55ee4ef30241a62b700f79517e6d5ef2ddbefa67;p=linux-beck.git gameport: use this_cpu_read instead of lookup Signed-off-by: Christoph Lameter Acked-by: "H. Peter Anvin" Signed-off-by: Tejun Heo --- 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