VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: Thomas Gleixner <tglx@linutronix.de> 2021-09-17 12:56:01 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:45 +0800 commit: bbaf2446f8e02f16a23049f1f60ce0f272e72816 parent: 825c4ae018e7122dbfef49fdbc4eaff2b24beaae
Commit Summary:
sched: Make preempt_enable_no_resched() behave like preempt_enable() on PREEMPT_RT
Diffstat:
1 file changed, 5 insertions, 1 deletion
diff --git a/include/linux/preempt.h b/include/linux/preempt.h
index 031898b38d06..d3d93b409cc9 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
@@ -189,7 +189,11 @@ do { \
 	preempt_count_dec(); \
 } while (0)
 
-#define preempt_enable_no_resched() sched_preempt_enable_no_resched()
+#ifndef CONFIG_PREEMPT_RT
+# define preempt_enable_no_resched() sched_preempt_enable_no_resched()
+#else
+# define preempt_enable_no_resched() preempt_enable()
+#endif
 
 #define preemptible()	(preempt_count() == 0 && !irqs_disabled())