Skip to content

Commit 55ee4ef

Browse files
Christoph Lameterhtejun
authored andcommitted
gameport: use this_cpu_read instead of lookup
Signed-off-by: Christoph Lameter <[email protected]> Acked-by: "H. Peter Anvin" <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 357089f commit 55ee4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/gameport/gameport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int gameport_measure_speed(struct gameport *gameport)
123123
}
124124

125125
gameport_close(gameport);
126-
return (cpu_data(raw_smp_processor_id()).loops_per_jiffy *
126+
return (this_cpu_read(cpu_info.loops_per_jiffy) *
127127
(unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);
128128

129129
#else

0 commit comments

Comments
 (0)