Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754340AbbGFPoS (ORCPT ); Mon, 6 Jul 2015 11:44:18 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49439 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbbGFPoP (ORCPT ); Mon, 6 Jul 2015 11:44:15 -0400 Date: Mon, 6 Jul 2015 08:43:10 -0700 From: tip-bot for Andy Lutomirski Message-ID: Cc: dmitry.torokhov@gmail.com, john.stultz@linaro.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org, hpa@zytor.com, torvalds@linux-foundation.org, lenb@kernel.org, ray.huang@amd.com, peterz@infradead.org, kvm@vger.kernel.org, luto@kernel.org, dvlasenk@redhat.com, luto@amacapital.net, brgerst@gmail.com, bp@suse.de, tglx@linutronix.de, bp@alien8.de, mingo@kernel.org Reply-To: torvalds@linux-foundation.org, lenb@kernel.org, john.stultz@linaro.org, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, ralf@linux-mips.org, hpa@zytor.com, brgerst@gmail.com, bp@suse.de, tglx@linutronix.de, mingo@kernel.org, bp@alien8.de, peterz@infradead.org, kvm@vger.kernel.org, luto@kernel.org, ray.huang@amd.com, luto@amacapital.net, dvlasenk@redhat.com In-Reply-To: <9e058e72f4cf1f13c6483c1360b39c3d188a2c2a.1434501121.git.luto@kernel.org> References: <9e058e72f4cf1f13c6483c1360b39c3d188a2c2a.1434501121.git.luto@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/asm/tsc, drivers/input/gameport: Replace rdtscl () with native_read_tsc() Git-Commit-ID: 732f374ba50b64150bf954c2d4e9f6fae583cccf X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2175 Lines: 55 Commit-ID: 732f374ba50b64150bf954c2d4e9f6fae583cccf Gitweb: http://git.kernel.org/tip/732f374ba50b64150bf954c2d4e9f6fae583cccf Author: Andy Lutomirski AuthorDate: Thu, 25 Jun 2015 18:44:05 +0200 Committer: Ingo Molnar CommitDate: Mon, 6 Jul 2015 15:23:28 +0200 x86/asm/tsc, drivers/input/gameport: Replace rdtscl() with native_read_tsc() It's unclear to me why this code exists in the first place. Signed-off-by: Andy Lutomirski Signed-off-by: Borislav Petkov Acked-by: Dmitry Torokhov Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Huang Rui Cc: John Stultz Cc: Len Brown Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Ralf Baechle Cc: Thomas Gleixner Cc: kvm ML Cc: linux-input@vger.kernel.org Link: http://lkml.kernel.org/r/9e058e72f4cf1f13c6483c1360b39c3d188a2c2a.1434501121.git.luto@kernel.org Signed-off-by: Ingo Molnar --- 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 e853a21..abc0cb2 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/