mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "soc: qcom: Correct idle task check for stack capture"
This commit is contained in:
commit
87b8339dff
1 changed files with 3 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ static void update_md_cpu_stack(u32 cpu, u64 sp)
|
|||
{
|
||||
struct md_stack_cpu_data *md_stack_cpu_d = &per_cpu(md_stack_data, cpu);
|
||||
|
||||
if (is_idle_task(current) || !md_current_stack_init)
|
||||
if (!md_current_stack_init)
|
||||
return;
|
||||
|
||||
update_md_stack(md_stack_cpu_d->stack_mdr,
|
||||
|
|
@ -380,6 +380,8 @@ void md_current_stack_notifer(void *ignore, bool preempt,
|
|||
u32 cpu = task_cpu(next);
|
||||
u64 sp = (u64)next->stack;
|
||||
|
||||
if (is_idle_task(next))
|
||||
return;
|
||||
update_md_cpu_stack(cpu, sp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue