diff options
Diffstat (limited to 'features/rt/x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch')
-rw-r--r-- | features/rt/x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/features/rt/x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch b/features/rt/x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch deleted file mode 100644 index 2d757aa5..00000000 --- a/features/rt/x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch +++ /dev/null @@ -1,34 +0,0 @@ -From ea85707dd291bf6df28d3d791e1169e8c9317c24 Mon Sep 17 00:00:00 2001 -From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> -Date: Tue, 30 Jun 2020 11:45:14 +0200 -Subject: [PATCH 164/191] x86/entry: Use should_resched() in - idtentry_exit_cond_resched() - -The TIF_NEED_RESCHED bit is inlined on x86 into the preemption counter. -By using should_resched(0) instead of need_resched() the same check can -be performed which uses the same variable as 'preempt_count()` which was -issued before. - -Use should_resched(0) instead need_resched(). - -Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> ---- - kernel/entry/common.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/kernel/entry/common.c b/kernel/entry/common.c -index 2a7bcc744033..162c49016f0f 100644 ---- a/kernel/entry/common.c -+++ b/kernel/entry/common.c -@@ -396,7 +396,7 @@ void irqentry_exit_cond_resched(void) - rcu_irq_exit_check_preempt(); - if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) - WARN_ON_ONCE(!on_thread_stack()); -- if (need_resched()) -+ if (should_resched(0)) - preempt_schedule_irq(); - } - } --- -2.19.1 - |