summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:22:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:26:40 +0000
commit08f003891b84f52e49a5bdbc8a589fb052ac9a4e (patch)
treeb7e426b4a4eb48e9e71188a2812a4c71625c35ac /debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch
parentMerging upstream version 4.19.260. (diff)
downloadlinux-08f003891b84f52e49a5bdbc8a589fb052ac9a4e.tar.xz
linux-08f003891b84f52e49a5bdbc8a589fb052ac9a4e.zip
Merging debian version 4.19.260-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch')
-rw-r--r--debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch b/debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch
deleted file mode 100644
index df8346c2d..000000000
--- a/debian/patches-rt/0240-x86-lazy-preempt-properly-check-against-preempt-mask.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 87b957ebbe16c81c7a72161e8d1ab55d0746bd83 Mon Sep 17 00:00:00 2001
-From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
-Date: Mon, 18 Feb 2019 16:57:09 +0100
-Subject: [PATCH 240/347] x86: lazy-preempt: properly check against
- preempt-mask
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.246-rt110.tar.xz
-
-should_resched() should check against preempt_offset after unmasking the
-need-resched-bit. Otherwise should_resched() won't work for
-preempt_offset != 0 and lazy-preempt set.
-
-Cc: stable-rt@vger.kernel.org
-Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
----
- arch/x86/include/asm/preempt.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/arch/x86/include/asm/preempt.h b/arch/x86/include/asm/preempt.h
-index 22992c837795..f66708779274 100644
---- a/arch/x86/include/asm/preempt.h
-+++ b/arch/x86/include/asm/preempt.h
-@@ -118,7 +118,7 @@ static __always_inline bool should_resched(int preempt_offset)
-
- /* preempt count == 0 ? */
- tmp &= ~PREEMPT_NEED_RESCHED;
-- if (tmp)
-+ if (tmp != preempt_offset)
- return false;
- if (current_thread_info()->preempt_lazy_count)
- return false;
---
-2.36.1
-