Re: [PATCH 1/3] cpuidle: Store the idle start time stamp

From: Daniel Lezcano
Date: Wed Apr 15 2015 - 08:29:12 EST

On 04/15/2015 12:20 PM, Peter Zijlstra wrote:
On Wed, Apr 15, 2015 at 12:00:22PM +0200, Daniel Lezcano wrote:
+ target_state->idle_stamp = ktime_to_us(ktime_get());


Hmm, sounds like I missed we are dealing with different units (us / ns) in cpuidle / sched.

Would it make sense to store the time into a ktime structure instead and use the relevant function depending on the place we are inspecting the value from ?

<> â Open source software for ARM SoCs

Follow Linaro: <> Facebook |
<!/linaroorg> Twitter |
<> Blog

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at