diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2019-04-11 16:20:41 -0700 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2019-04-12 17:21:28 -0700 |
commit | ae64304e43c9ca64b6dc48546317545c4a4b45a3 (patch) | |
tree | 6fef684e612d09c588d82620ab2495cfe2ada599 | |
parent | 55e162df4f83c8faebe857c53e127ca015581c2f (diff) | |
download | arc-topic-event-logger.tar.gz |
ARC: Event logger: identify next task in context switchtopic-event-logger
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/include/asm/switch_to.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arc/include/asm/switch_to.h b/arch/arc/include/asm/switch_to.h index 77809a720dd03c..9e5cd54c9c8004 100644 --- a/arch/arc/include/asm/switch_to.h +++ b/arch/arc/include/asm/switch_to.h @@ -62,11 +62,9 @@ do { \ #define prepare_arch_switch(next) \ do { \ if (next->mm) \ - take_snap2(SNAP_PRE_CTXSW_2_U, \ - (unsigned int) __builtin_return_address(0), 0); \ + take_snap4(SNAP_PRE_CTXSW_2_U, 0, 0, 0, next->pid); \ else \ - take_snap2(SNAP_PRE_CTXSW_2_K, \ - (unsigned int) __builtin_return_address(0), 0); \ + take_snap4(SNAP_PRE_CTXSW_2_K, 0, 0, 0, next->pid); \ } \ while (0) #endif |