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> 2021-08-24 22:47:37 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:38 +0800 commit: a8f30af2b963f4f2db065b617e6a54c835fc2096 parent: 5c8a87a305afa290ec0ee321efd0581ac5c02073
Commit Summary:
sched: Switch wait_task_inactive to HRTIMER_MODE_REL_HARD
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 1fbf0cdb7e3e..572afdae3231 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3250,7 +3250,7 @@ unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state
 			ktime_t to = NSEC_PER_SEC / HZ;
 
 			set_current_state(TASK_UNINTERRUPTIBLE);
-			schedule_hrtimeout(&to, HRTIMER_MODE_REL);
+			schedule_hrtimeout(&to, HRTIMER_MODE_REL_HARD);
 			continue;
 		}