[PATCH v3 0/1] wait_task_inactive() spend too much time on system startup

From: cl
Date: Fri Mar 06 2020 - 02:01:53 EST


From: Liang Chen <cl@xxxxxxxxxxxxxx>

Changelog:
v1: wait_task_inactive() frequently call schedule_hrtimeout() and spend a lot of time,
i am trying to optimize it on rockchip platform.
v2: Use atomic_flags(PFA) instead of TIF flag, and add some comments.
v3: Use a new method fix this issue to make the code simple.

Liang Chen (1):
kthread: do not preempt current task if it is going to call schedule()

kernel/kthread.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

--
2.17.1