Re: [PATCH RFC v1 3/8] timer: Export next wakeup time of a CPU

From: Ulf Hansson
Date: Tue Oct 30 2018 - 06:30:12 EST


On 29 October 2018 at 23:36, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> Raju,
>
> On Thu, 11 Oct 2018, Raju P.L.S.S.S.N wrote:
>>
>> +/**
>> + * tick_nohz_get_next_wakeup - return the next wake up of the CPU
>
> Lacks documentation of @cpu. Please include kernel docs into your test
> builds.

Good point!

>
>> + */
>> +ktime_t tick_nohz_get_next_wakeup(int cpu)
>> +{
>> + struct clock_event_device *dev = per_cpu(tick_cpu_device.evtdev, cpu);
>> +
>> + return dev->next_event;
>> +}

Thanks for your review!

Kind regards
Uffe