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

Rafael J. Wysocki
2018-04-05T13:52:01Z

On Thu, Apr 5, 2018 at 2:27 PM, Peter Zijlstra <peterz@infradead.org> 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.