]> Git Repo - linux.git/commitdiff
nohz: Include local CPU in full dynticks global kick
authorFrederic Weisbecker <[email protected]>
Fri, 2 Aug 2013 16:29:56 +0000 (18:29 +0200)
committerIngo Molnar <[email protected]>
Fri, 16 Aug 2013 15:55:33 +0000 (17:55 +0200)
tick_nohz_full_kick_all() is useful to notify all full dynticks
CPUs that there is a system state change to checkout before
re-evaluating the need for the tick.

Unfortunately this is implemented using smp_call_function_many()
that ignores the local CPU. This CPU also needs to re-evaluate
the tick.

on_each_cpu_mask() is not useful either because we don't want to
re-evaluate the tick state in place but asynchronously from an IPI
to avoid messing up with any random locking scenario.

So lets call tick_nohz_full_kick() from tick_nohz_full_kick_all()
so that the usual irq work takes care of it.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Li Zhong <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Kevin Hilman <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/time/tick-sched.c

index adea6fc3ba2ad523295afa12a70031ba081b96e4..3612fc77f834372c0d5d674f3bc5ae609dd64635 100644 (file)
@@ -246,6 +246,7 @@ void tick_nohz_full_kick_all(void)
        preempt_disable();
        smp_call_function_many(tick_nohz_full_mask,
                               nohz_full_kick_ipi, NULL, false);
+       tick_nohz_full_kick();
        preempt_enable();
 }
 
This page took 0.05572 seconds and 4 git commands to generate.