From patchwork Sun Jul 11 16:14:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Winchester X-Patchwork-Id: 111326 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6BGF6I1010594 for ; Sun, 11 Jul 2010 16:15:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646Ab0GKQPE (ORCPT ); Sun, 11 Jul 2010 12:15:04 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:55375 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523Ab0GKQPD (ORCPT ); Sun, 11 Jul 2010 12:15:03 -0400 Received: by qwh6 with SMTP id 6so1060710qwh.19 for ; Sun, 11 Jul 2010 09:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:mime-version:content-type :content-transfer-encoding:to; bh=RF3Fz86LJ6f9TVKOrjZTq2SEda7HszTK67fW1aQjufk=; b=rMJLhvGzSxoHBVUci0eSKgudypLQK4oA/ConZZQElPn9wVBnYGYLZ1iCcEbkpZ+U0N EEZnFPmzLgSX44/nDhyPWze1nEcRT/hJtyul86KXLqsJvAaXlx+6M4TOQMDQj3NgAiyz d3r21G8C6XTohycr7PH2MvpSqtokLDgve1c+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=sl4ioN6JR1Sbkpej7kkjdK9a++n1IvM/IyikuCegCZL5lhpXSjgugDpNabXvtAl+TW wFpBPjsOxdecZhRZjNLQyQl6AQUNeVhC9W4+1TPsDW6mfAOWgZUW26BRSBt73VwIYRyy mFG0BYY9HPEkajyUuQehcDfUFgKcikcCwRoXA= Received: by 10.224.52.23 with SMTP id f23mr7074406qag.370.1278864901210; Sun, 11 Jul 2010 09:15:01 -0700 (PDT) Received: from localhost.localdomain (CPE00222d2f7176-CM00222d2f7172.cpe.net.cable.rogers.com [99.252.116.17]) by mx.google.com with ESMTPS id q30sm14989125qcq.36.2010.07.11.09.14.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Jul 2010 09:15:00 -0700 (PDT) From: Kevin Winchester To: Len Brown Cc: Kevin Winchester , Venkatesh Pallipadi , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] acpi: Fix warning: 'us_to_pm_timer_ticks' defined but not used Date: Sun, 11 Jul 2010 13:14:53 -0300 Message-Id: <1278864893-26281-1-git-send-email-kjwinchester@gmail.com> X-Mailer: git-send-email 1.7.1.1 MIME-Version: 1.0 To: Len Brown Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 11 Jul 2010 16:15:06 +0000 (UTC) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index b1b3856..8525070 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -80,10 +80,6 @@ module_param(nocst, uint, 0000); static unsigned int latency_factor __read_mostly = 2; module_param(latency_factor, uint, 0644); -static u64 us_to_pm_timer_ticks(s64 t) -{ - return div64_u64(t * PM_TIMER_FREQUENCY, 1000000); -} /* * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3. * For now disable this. Probably a bug somewhere else. @@ -685,6 +681,12 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr) } #ifdef CONFIG_ACPI_PROCFS + +static u64 us_to_pm_timer_ticks(s64 t) +{ + return div64_u64(t * PM_TIMER_FREQUENCY, 1000000); +} + static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset) { struct acpi_processor *pr = seq->private;