lkml.org 
[lkml]   [2015]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] cpuidle: Store the idle start time stamp
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;


\
 
 \ /
  Last update: 2015-04-15 12:41    [W:0.139 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site