We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357089f commit 55ee4efCopy full SHA for 55ee4ef
drivers/input/gameport/gameport.c
@@ -123,7 +123,7 @@ static int gameport_measure_speed(struct gameport *gameport)
123
}
124
125
gameport_close(gameport);
126
- return (cpu_data(raw_smp_processor_id()).loops_per_jiffy *
+ return (this_cpu_read(cpu_info.loops_per_jiffy) *
127
(unsigned long)HZ / (1000 / 50)) / (tx < 1 ? 1 : tx);
128
129
#else
0 commit comments