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

Skip to content
Commit 9075331c authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

trace: fix preemption disable tracking during context switch to idle



schedule() calls __schedule() with preemption disabled. The preemption
latency tracking code make a note of this. If the CPU enters idle there
is no up date to the latency tracking code. When the CPU exits idle,
preemption is enabled by the task that is scheduled in. The latency
tracking code thinks that preemption is disabled the whole time. To fix
this, reset the preemption latency tracking time upon context switching
from the idle task. This is only done for the idle task because we still
want to catch the long preemption disable time during the context switch
which may also involves running time of new idle load balance.

Change-Id: Ic6ec526e244911d6dac9851d32a25263abf56639
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent adc5c327
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment