aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2013-04-20 09:27:08 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2013-04-22 14:16:04 -0400
commitff442c51f6543378cf23107c75b7949dc64a9119 (patch)
tree7c3cf3031f0bb0b8f0c9e8a170d17922b3bd1926 /kernel/sched
parentce831b38ca4920739a7a5b0c73b921da41f03718 (diff)
nohz: Re-evaluate the tick from the scheduler IPI
The scheduler IPI is used by the scheduler to kick full dynticks CPUs asynchronously when more than one task are running or when a new timer list timer is enqueued. This way the destination CPU can decide to restart the tick to handle this new situation. Now let's call that kick in the scheduler IPI. (Reusing the scheduler IPI rather than implementing a new IPI was suggested by Peter Zijlstra a while ago) Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Chris Metcalf <cmetcalf@tilera.com> Cc: Christoph Lameter <cl@linux.com> Cc: Geoff Levand <geoff@infradead.org> Cc: Gilad Ben Yossef <gilad@benyossef.com> Cc: Hakan Akkan <hakanakkan@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Kevin Hilman <khilman@linaro.org> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 69f71335984f..9ad35005f1cb 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1398,7 +1398,8 @@ static void sched_ttwu_pending(void)
1398 1398
1399void scheduler_ipi(void) 1399void scheduler_ipi(void)
1400{ 1400{
1401 if (llist_empty(&this_rq()->wake_list) && !got_nohz_idle_kick()) 1401 if (llist_empty(&this_rq()->wake_list) && !got_nohz_idle_kick()
1402 && !tick_nohz_full_cpu(smp_processor_id()))
1402 return; 1403 return;
1403 1404
1404 /* 1405 /*
@@ -1415,6 +1416,7 @@ void scheduler_ipi(void)
1415 * somewhat pessimize the simple resched case. 1416 * somewhat pessimize the simple resched case.
1416 */ 1417 */
1417 irq_enter(); 1418 irq_enter();
1419 tick_nohz_full_check();
1418 sched_ttwu_pending(); 1420 sched_ttwu_pending();
1419 1421
1420 /* 1422 /*