Re: [PATCH v9 09/10] cpuidle: menu: Refine idle state selection for running tick

From: Rafael J. Wysocki
Date: Thu Apr 05 2018 - 09:52:06 EST


On Thu, Apr 5, 2018 at 2:27 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Wed, Apr 04, 2018 at 10:49:34AM +0200, Rafael J. Wysocki wrote:
>> -static inline ktime_t tick_nohz_get_sleep_length(void)
>> +static inline ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next)
>> {
>> - return NSEC_PER_SEC / HZ;
>> + *delta_next = NSEC_PER_SEC / HZ;
>> + return *delta_next;
>
> Shouldn't that be TICK_NSEC ?

Yes, it should.