From patchwork Tue Nov 1 21:25:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dsaxena-linaro2 X-Patchwork-Id: 4888 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E613323E08 for ; Tue, 1 Nov 2011 21:25:05 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id D3872A184D1 for ; Tue, 1 Nov 2011 21:25:05 +0000 (UTC) Received: by faan26 with SMTP id n26so10684213faa.11 for ; Tue, 01 Nov 2011 14:25:05 -0700 (PDT) Received: by 10.223.5.82 with SMTP id 18mr3212626fau.27.1320182705616; Tue, 01 Nov 2011 14:25:05 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.14.103 with SMTP id o7cs25485lac; Tue, 1 Nov 2011 14:25:04 -0700 (PDT) Received: by 10.236.89.42 with SMTP id b30mr2434381yhf.24.1320182702325; Tue, 01 Nov 2011 14:25:02 -0700 (PDT) Received: from plexity.net (plexity.net. [206.123.115.38]) by mx.google.com with ESMTPS id g8si352390yhe.44.2011.11.01.14.25.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Nov 2011 14:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of dsaxena@plexity.net designates 206.123.115.38 as permitted sender) client-ip=206.123.115.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dsaxena@plexity.net designates 206.123.115.38 as permitted sender) smtp.mail=dsaxena@plexity.net Received: by plexity.net (Postfix, from userid 1000) id 256E2213A2; Tue, 1 Nov 2011 14:25:01 -0700 (PDT) Date: Tue, 1 Nov 2011 14:25:01 -0700 From: Deepak Saxena To: Thomas Gleixner , John Stultz Cc: linux-kernel@vger.kernel.org, Linus Torvalds , patches@linaro.org Subject: [PATCH] Remove CLOCK_TICK_RATE from acpi_pm clocksource driver Message-ID: <20111101212501.GA31143@plexity.net> Reply-To: dsaxena@plexity.net MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) The acpi_pm clocksource driver uses CLOCK_TICK_RATE which is defined as PIT_TICK_RATE on x86. This patch cleans it up to just use the later so that CLOCK_TICK_RATE can be depecrated. Signed-off-by: Deepak Saxena --- drivers/clocksource/acpi_pm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index effe797..6b5cf02 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c @@ -143,7 +143,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_LE, #ifndef CONFIG_X86_64 #include #define PMTMR_EXPECTED_RATE \ - ((CALIBRATE_LATCH * (PMTMR_TICKS_PER_SEC >> 10)) / (CLOCK_TICK_RATE>>10)) + ((CALIBRATE_LATCH * (PMTMR_TICKS_PER_SEC >> 10)) / (PIT_TICK_RATE>>10)) /* * Some boards have the PMTMR running way too fast. We check * the PMTMR rate against PIT channel 2 to catch these cases.