Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759805AbYCDR2S (ORCPT ); Tue, 4 Mar 2008 12:28:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753063AbYCDR2B (ORCPT ); Tue, 4 Mar 2008 12:28:01 -0500 Received: from one.firstfloor.org ([213.235.205.2]:53299 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbYCDR2A (ORCPT ); Tue, 4 Mar 2008 12:28:00 -0500 Date: Tue, 4 Mar 2008 18:29:18 +0100 From: Andi Kleen To: Pierre Ossman Cc: "Pallipadi, Venkatesh" , Dave Jones , Andi Kleen , Alan Stern , LKML , Adam Belay , Lee Revell , linux-pm@lists.linux-foundation.org, Pavel Machek Subject: Re: [linux-pm] [PATCH] cpuidle: avoid singing capacitors Message-ID: <20080304172918.GA27332@one.firstfloor.org> References: <924EFEDD5F540B4284297C4DC59F3DEEA2E8B2@orsmsx423.amr.corp.intel.com> <20080303231033.GB15255@one.firstfloor.org> <20080304040048.GA31562@codemonkey.org.uk> <20080304071423.0e6b71c1@mjolnir.drzeus.cx> <20080304181924.70aaf8c1@mjolnir.drzeus.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080304181924.70aaf8c1@mjolnir.drzeus.cx> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 13 > So for now, I'm back to thinking that measuring the interval between deep sleeps is the better approach. I could use some ideas for a good clock source though. I haven't dug much deeper than jiffies when it comes to kernel timekeeping. jiffies should work, you just need to make sure you measure them at the right place. In particular there is some code in dyntick that catches up on jiffies after the deep sleep when the normal timer handler didn't run and jiffies are only usable again after that code executed. -ANdi -- 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/