From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id BF63E2C0086 for ; Tue, 27 Nov 2012 17:14:36 +1100 (EST) Received: by mail-qa0-f51.google.com with SMTP id t11so4205994qaa.17 for ; Mon, 26 Nov 2012 22:14:33 -0800 (PST) Sender: Len Brown Message-ID: <50B45A47.9050600@kernel.org> Date: Tue, 27 Nov 2012 01:14:31 -0500 From: Len Brown MIME-Version: 1.0 To: Preeti Murthy Subject: Re: [PATCH] cpuidle: Measure idle state durations with monotonic clock References: <1352944590-8776-1-git-send-email-jwerner@chromium.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Cc: Kevin Hilman , Deepthi Dharwar , Trinabh Gupta , Lists Linaro-dev , Peter Zijlstra , linux-pm@vger.kernel.org, Daniel Lezcano , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, "Srivatsa S. Bhat" , Julius Werner , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Sameer Nanda List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/15/2012 04:04 AM, Preeti Murthy wrote: > Hi all, > > The code looks correct and inviting to me as it has led to good cleanups. > I dont think passing 0 as the argument to the function > sched_clock_idle_wakeup_event() > should lead to problems,as it does not do anything useful with the > passed arguments. > > My only curiosity is what was the purpose of passing idle residency time to > sched_clock_idle_wakeup_event() when this data could always be retrieved from > dev->last_residency for each cpu,which gets almost immediately updated. sched_clock_idle_wakeup_event() is part of the scheduler. The scheduler doesn't know what a cpuidle_device is, and probably should not grow such a dependency. cheers, -Len Brown, Intel Open Source Technology Center > But this does not seem to come in way of this patch for now.Anyway I > have added Peter to > the list so that he can opine about this issue if possible and needed. > > Reviewed-by: Preeti U Murthy > > > Regards > Preeti U Murthy >