diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-06-15 04:02:16 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-06-15 04:02:16 -0400 |
commit | 635739fb5e0192dbb0ae6f5c68503ef8afaed73f (patch) | |
tree | b409b428caedf5564943a0ae36c597e436d1fc76 /kernel | |
parent | 7c2bc90ec99f1f774d6240d9e3d96f1fe80b84c6 (diff) |
Core: call IPI notifier from generic scheduler IPI handler
Instead of replicating this code across all supported architectures,
hook into the IPI code only once.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a17bd1a9be77..98ad911a0c58 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -1816,6 +1816,9 @@ void scheduler_ipi(void) | |||
1816 | */ | 1816 | */ |
1817 | preempt_fold_need_resched(); | 1817 | preempt_fold_need_resched(); |
1818 | 1818 | ||
1819 | /* Let LITMUS^RT preemption state machine know about this IPI. */ | ||
1820 | sched_state_ipi(); | ||
1821 | |||
1819 | if (llist_empty(&this_rq()->wake_list) && !got_nohz_idle_kick()) | 1822 | if (llist_empty(&this_rq()->wake_list) && !got_nohz_idle_kick()) |
1820 | { | 1823 | { |
1821 | #ifndef CONFIG_ARCH_CALLS_IRQ_ENTER_ON_RESCHED_IPI | 1824 | #ifndef CONFIG_ARCH_CALLS_IRQ_ENTER_ON_RESCHED_IPI |