]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tile: support CONTEXT_TRACKING and thus NOHZ_FULL
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 23 Mar 2015 18:23:58 +0000 (14:23 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Tue, 24 Mar 2015 21:46:29 +0000 (17:46 -0400)
commitf7f44f9848897d9f61c0ede265be62904f4f3606
treeee8882809b208ff622571769229fa3a31bf6e4a2
parent744174474e237dd6947f4737c952a5bc0032c3c4
tile: support CONTEXT_TRACKING and thus NOHZ_FULL

Add the TIF_NOHZ flag appropriately.

Add call to user_exit() on entry to do_work_pending() and on entry
to syscalls via do_syscall_trace_enter(), and also the top of
do_syscall_trace_exit() just because it's done in x86.

Add call to user_enter() at the bottom of do_work_pending() once we
have no more work to do before returning to userspace.

Wrap all the trap code in exception_enter() / exception_exit().

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/Kconfig
arch/tile/include/asm/thread_info.h
arch/tile/kernel/process.c
arch/tile/kernel/ptrace.c
arch/tile/kernel/single_step.c
arch/tile/kernel/traps.c
arch/tile/kernel/unaligned.c
arch/tile/mm/fault.c