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

Commit 0b5d3205 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Satya Durga Srinivasu Prabhala
Browse files

sched: Fix incorrect sleep duration in wait_task_inactive()



The sleep timeout in wait_task_inactive is incorrectly set to 10 usec
by 'commit e387fd87 ("sched: reduce sleep duration in
wait_task_inactive()")'. The intention of the patch was to use
1 msec like in previous kernel. The 10 usec is too short and won't
allow the other task to become inactive. This can potentially
result in a boot up failure while the creation of the smpboot
threads.

Change-Id: Ib888a0f4d70c13320b39847b5d3fca8ec1963e80
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 8c126e98
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);