projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
016bfc4
)
x86/asm/tsc, drivers/input/gameport: Replace rdtscl() with native_read_tsc()
author
Andy Lutomirski
<
[email protected]
>
Thu, 25 Jun 2015 16:44:05 +0000
(18:44 +0200)
committer
Ingo Molnar
<
[email protected]
>
Mon, 6 Jul 2015 13:23:28 +0000
(15:23 +0200)
It's unclear to me why this code exists in the first place.
Signed-off-by: Andy Lutomirski <
[email protected]
>
Signed-off-by: Borislav Petkov <
[email protected]
>
Acked-by: Dmitry Torokhov <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Brian Gerst <
[email protected]
>
Cc: Denys Vlasenko <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Huang Rui <
[email protected]
>
Cc: John Stultz <
[email protected]
>
Cc: Len Brown <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Ralf Baechle <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: kvm ML <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/9e058e72f4cf1f13c6483c1360b39c3d188a2c2a.1434501121.git.luto@kernel.org
Signed-off-by: Ingo Molnar <
[email protected]
>
drivers/input/gameport/gameport.c
patch
|
blob
|
history
diff --git
a/drivers/input/gameport/gameport.c
b/drivers/input/gameport/gameport.c
index e853a2134680d690c42e07230097a709c9fe1669..abc0cb22e7504cca309c343c41750f03eb67a010 100644
(file)
--- a/
drivers/input/gameport/gameport.c
+++ b/
drivers/input/gameport/gameport.c
@@
-149,9
+149,9
@@
static int old_gameport_measure_speed(struct gameport *gameport)
for(i = 0; i < 50; i++) {
local_irq_save(flags);
-
rdtscl(t1
);
+
t1 = native_read_tsc(
);
for (t = 0; t < 50; t++) gameport_read(gameport);
-
rdtscl(t2
);
+
t2 = native_read_tsc(
);
local_irq_restore(flags);
udelay(i * 10);
if (t2 - t1 < tx) tx = t2 - t1;