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

2018-10-30 Thread Ulf Hansson
On 29 October 2018 at 23:36, Thomas Gleixner 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! > >> + */

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

2018-10-29 Thread Thomas Gleixner
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. > + */ > +ktime_t tick_nohz_get_next_wakeup(int cpu) > +{ > + struct clock_event_d

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

2018-10-10 Thread Raju P.L.S.S.S.N
From: Lina Iyer Knowing the sleep duration of CPUs, is known to be needed while selecting the most energy efficient idle state for a CPU or a group of CPUs. However, to be able to compute the sleep duration, we need to know at what time the next expected wakeup is for the CPU. Therefore, let's e