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

Commit 4e69a078 authored by Olav Haugan's avatar Olav Haugan
Browse files

Perf: arm64: Use proper API to get task cpu



Instead of directly accessing thread_info structure to get the
task cpu use the appropriate wrapper API. This is needed for
subsequent patches refactors the location of task cpu.

Change-Id: Ib87f42481beee04ba646aee3b0b4b5a43862713e
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent ffd90498
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ void tracectr_notifier(void *ignore, bool preempt,
{
	u32 cnten_val;
	int current_pid;
	u32 cpu = task_thread_info(next)->cpu;
	u32 cpu = task_cpu(next);

	if (tp_pid_state != 1)
		return;