mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Revert "sched: reduce sleep duration in wait_task_inactive()"
Upstream commit '26c7295be0c5e("kthread: Do not preempt current
task if it is going to call schedule()")' makes parent thread to not
call wait_task_inactive(child) on kthread create completion, which
intern avoids calling schedule_hrtimeout() and reduce bootup latencies.
The commit 'a9e87164b8984(sched: reduce sleep duration in
wait_task_inactive())' reduces wait time to 1msec to avoid bootup
latencies. Which can be reverted now.
Change-Id: I4b2fd0abe5a264f4d662bdeab4160d1977ef6c22
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
This commit is contained in:
parent
99c311bb7a
commit
cb8206ddb0
1 changed files with 1 additions and 1 deletions
|
|
@ -2008,7 +2008,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;
|
||||
ktime_t to = NSEC_PER_SEC / HZ;
|
||||
|
||||
set_current_state(TASK_UNINTERRUPTIBLE);
|
||||
schedule_hrtimeout(&to, HRTIMER_MODE_REL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue