Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a2c3c38 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Fix incorrect sleep duration in wait_task_inactive()"

parents 0cccc78d 0b5d3205
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1448,7 +1448,7 @@ unsigned long wait_task_inactive(struct task_struct *p, long match_state)
		 * yield - it could be a while.
		 */
		if (unlikely(queued)) {
			ktime_t to = NSEC_PER_MSEC / HZ;
			ktime_t to = NSEC_PER_MSEC;

			set_current_state(TASK_UNINTERRUPTIBLE);
			schedule_hrtimeout(&to, HRTIMER_MODE_REL);