From: Thomas Gleixner <tglx@linutronix.de> Date: Fri, 17 Sep 2021 12:56:01 +0200 Subject: [PATCH] sched: Make preempt_enable_no_resched() behave like preempt_enable() on PREEMPT_RT Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- include/linux/preempt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) @ include/linux/preempt.h:192 @ 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())