Skip to content

Commit

Permalink
gameport: use this_cpu_read instead of lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Christoph Lameter authored and Tejun Heo committed Jan 4, 2011
1 parent 357089f commit 55ee4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55ee4ef

Please sign in to comment.