From patchwork Tue May 18 01:47:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Pallipadi X-Patchwork-Id: 100291 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4I1lfSe011505 for ; Tue, 18 May 2010 01:47:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756111Ab0ERBrF (ORCPT ); Mon, 17 May 2010 21:47:05 -0400 Received: from smtp-out.google.com ([216.239.44.51]:15755 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754422Ab0ERBrE (ORCPT ); Mon, 17 May 2010 21:47:04 -0400 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o4I1l1gZ025315 for ; Mon, 17 May 2010 18:47:02 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274147222; bh=DPepNFznpxxuqY8CL0QlQwestd4=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=VakRQ4cBKylQIRMONcL1QIHX7rdvlNzrgBAt+NuNLjjKv8GcwCkDstL+VDdDRmXH+ DuyoFqkgRuRDyGlZJffYA== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=tjo7TEb41cYf3JxBhhCmHvoOHx5vCWvsi/lxE8+xg+mOfWjgxtpruBL4gr0rAyfLE KJMCD/S9774Squ77qYDbA== Received: from gxk21 (gxk21.prod.google.com [10.202.11.21]) by kpbe15.cbf.corp.google.com with ESMTP id o4I1l0l9022902 for ; Mon, 17 May 2010 18:47:01 -0700 Received: by gxk21 with SMTP id 21so957722gxk.14 for ; Mon, 17 May 2010 18:47:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.160.8 with SMTP id i8mr7187582ybe.395.1274147220381; Mon, 17 May 2010 18:47:00 -0700 (PDT) Received: by 10.151.117.13 with HTTP; Mon, 17 May 2010 18:47:00 -0700 (PDT) In-Reply-To: <1271980113-5624-1-git-send-email-venki@google.com> References: <1271980113-5624-1-git-send-email-venki@google.com> Date: Mon, 17 May 2010 18:47:00 -0700 Message-ID: Subject: Re: [PATCH] acpi: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion From: Venkatesh Pallipadi To: Len Brown Cc: ACPI list , Venkatesh Pallipadi X-System-Of-Record: true 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]); Tue, 18 May 2010 01:47:42 +0000 (UTC) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 9e734ce..336da8d 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -80,7 +80,7 @@ module_param(nocst, uint, 0000); static unsigned int latency_factor __read_mostly = 2; module_param(latency_factor, uint, 0644); -static s64 us_to_pm_timer_ticks(s64 t) +static u64 us_to_pm_timer_ticks(s64 t) { return div64_u64(t * PM_TIMER_FREQUENCY, 1000000); } @@ -741,10 +741,10 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset) else seq_puts(seq, "demotion[--] "); - seq_printf(seq, "latency[%03d] usage[%08d] duration[%020llu]\n", + seq_printf(seq, "latency[%03d] usage[%08d] duration[%020Lu]\n", pr->power.states[i].latency, pr->power.states[i].usage, - (unsigned long long)pr->power.states[i].time); + us_to_pm_timer_ticks(pr->power.states[i].time)); }