aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Covington <cov@codeaurora.org>2013-04-03 14:01:01 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-04-17 11:11:35 -0400
commit3325732f3b223812e54ac67dbb0a8ea7c99cf519 (patch)
tree1289fc098b4147b25c98168498afd4babfc9cf6e
parent5c1ce6f7c2aae5329f667fb079b3198266d9a3fa (diff)
arm64: Fix task tracing
For accurate accounting call contextidr_thread_switch before a task is scheduled, rather than after, when the 'next' variable has a different meaning since we switched the stacks. Signed-off-by: Christopher Covington <cov@codeaurora.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 0337cdb0667b..c2cc2493481b 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -311,11 +311,11 @@ struct task_struct *__switch_to(struct task_struct *prev,
311 fpsimd_thread_switch(next); 311 fpsimd_thread_switch(next);
312 tls_thread_switch(next); 312 tls_thread_switch(next);
313 hw_breakpoint_thread_switch(next); 313 hw_breakpoint_thread_switch(next);
314 contextidr_thread_switch(next);
314 315
315 /* the actual thread switch */ 316 /* the actual thread switch */
316 last = cpu_switch_to(prev, next); 317 last = cpu_switch_to(prev, next);
317 318
318 contextidr_thread_switch(next);
319 return last; 319 return last;
320} 320}
321 321