Commit 54afe890 authored by Thomas Gleixner's avatar Thomas Gleixner

sched: enable irqs in fire_sched_in_preempt_notifier

KVM expects the notifier call with irqs enabled. It's necessary due
to a possible IPI call. Make the preempt-rt version behave the same
way as mainline.
Signed-off-by: default avatarThomas Gleixner <tgxl@linutronix.de>
parent 529d35d4
......@@ -2852,8 +2852,17 @@ static void fire_sched_in_preempt_notifiers(struct task_struct *curr)
struct preempt_notifier *notifier;
struct hlist_node *node;
if (hlist_empty(&curr->preempt_notifiers))
return;
/*
* The KVM sched in notifier expects to be called with
* interrupts enabled.
*/
local_irq_enable();
hlist_for_each_entry(notifier, node, &curr->preempt_notifiers, link)
notifier->ops->sched_in(notifier, raw_smp_processor_id());
local_irq_disable();
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment