Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-07-07 Thread Frederic Weisbecker
On Thu, Jun 11, 2015 at 04:46:29PM -0400, Rik van Riel wrote: > On 06/11/2015 01:36 PM, Frederic Weisbecker wrote: > > The tick dependency is evaluated on every irq. This is a batch of checks > > which determine whether it is safe to stop the tick or not. These checks > > are often split in many de

Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-07-06 Thread Frederic Weisbecker
On Fri, Jun 12, 2015 at 09:36:50AM +0200, Peter Zijlstra wrote: > On Thu, Jun 11, 2015 at 07:36:07PM +0200, Frederic Weisbecker wrote: > > +static void tick_nohz_full_update_dependencies(void) > > +{ > > + struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); > > + > > + if (!posix_cpu_timers_

Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-16 Thread Preeti U Murthy
On 06/12/2015 02:16 AM, Rik van Riel wrote: > On 06/11/2015 01:36 PM, Frederic Weisbecker wrote: >> The tick dependency is evaluated on every irq. This is a batch of checks >> which determine whether it is safe to stop the tick or not. These checks >> are often split in many details: posix cpu time

Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-12 Thread Peter Zijlstra
On Thu, Jun 11, 2015 at 07:36:07PM +0200, Frederic Weisbecker wrote: > +static void tick_nohz_full_update_dependencies(void) > +{ > + struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); > + > + if (!posix_cpu_timers_can_stop_tick(current)) > + ts->tick_needed |= TICK_NEEDED_P

Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-11 Thread Rik van Riel
On 06/11/2015 01:36 PM, Frederic Weisbecker wrote: > The tick dependency is evaluated on every irq. This is a batch of checks > which determine whether it is safe to stop the tick or not. These checks > are often split in many details: posix cpu timers, scheduler, sched clock, > perf events. Each o

[PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-11 Thread Frederic Weisbecker
The tick dependency is evaluated on every irq. This is a batch of checks which determine whether it is safe to stop the tick or not. These checks are often split in many details: posix cpu timers, scheduler, sched clock, perf events. Each of which are made of smaller details: posix cpu timer involv