projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
357089f
)
gameport: use this_cpu_read instead of lookup
author
Christoph Lameter
<cl@linux.com>
Thu, 16 Dec 2010 18:15:15 +0000
(12:15 -0600)
committer
Tejun Heo
<tj@kernel.org>
Tue, 4 Jan 2011 05:09:10 +0000
(06:09 +0100)
Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/input/gameport/gameport.c
patch
|
blob
|
history
diff --git
a/drivers/input/gameport/gameport.c
b/drivers/input/gameport/gameport.c
index
46239e4
..
88d13f1
100644
(file)
--- 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