Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754479AbbDOK0D (ORCPT ); Wed, 15 Apr 2015 06:26:03 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:42560 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbbDOKZ4 (ORCPT ); Wed, 15 Apr 2015 06:25:56 -0400 Date: Wed, 15 Apr 2015 12:25:43 +0200 From: Peter Zijlstra To: Daniel Lezcano Cc: rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, nicolas.pitre@linaro.org Subject: Re: [PATCH 1/3] cpuidle: Store the idle start time stamp Message-ID: <20150415102543.GS5029@twins.programming.kicks-ass.net> References: <1429092024-20498-1-git-send-email-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429092024-20498-1-git-send-email-daniel.lezcano@linaro.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 460 Lines: 11 On Wed, Apr 15, 2015 at 12:00:22PM +0200, Daniel Lezcano wrote: > + diff = ktime_to_us(ktime_sub_us(ktime_get(), target_state->idle_stamp)); Oh groan; seriously? diff = ktime_get_ns() - target_state->idle_stamp; -- 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/