VisionFive2 Linux kernel

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

More than 9999 Commits   30 Branches   50 Tags
author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2020-06-30 11:45:14 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:51 +0800 commit: 3a2082769702a96b80d8f1c7c6420df7237ec826 parent: 6aaa52aeaebdd3e77a1da8f961047ba8c5fb5877
Commit Summary:
x86/entry: Use should_resched() in idtentry_exit_cond_resched()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/kernel/entry/common.c b/kernel/entry/common.c
index b01531ea4067..64bec596959d 100644
--- a/kernel/entry/common.c
+++ b/kernel/entry/common.c
@@ -395,7 +395,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();
 	}
 }