Messages in this thread Patch in this message | | | From | Borislav Petkov <> | Subject | [PATCH 11/19] drivers/input/gameport: Replace rdtscl() with native_read_tsc() | Date | Thu, 25 Jun 2015 18:44:05 +0200 |
| |
From: Andy Lutomirski <luto@kernel.org>
It's unclear to me why this code exists in the first place.
Signed-off-by: Andy Lutomirski <luto@kernel.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Huang Rui <ray.huang@amd.com> Cc: John Stultz <john.stultz@linaro.org> Cc: kvm ML <kvm@vger.kernel.org> Cc: Len Brown <lenb@kernel.org> Cc: linux-input@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: x86-ml <x86@kernel.org> Link: http://lkml.kernel.org/r/9e058e72f4cf1f13c6483c1360b39c3d188a2c2a.1434501121.git.luto@kernel.org Signed-off-by: Borislav Petkov <bp@suse.de> --- drivers/input/gameport/gameport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index e853a2134680..abc0cb22e750 100644 --- 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; -- 2.3.5
| |