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>
Fri, 17 Apr 2015 18:01:10 +0000 (14:01 -0400)
commit49e4e15619cd7cd9fc275d460fae2a95c1337fcc
tree700e24bb8f72a7662e7d4ae26d847e908d08de92
parentb340c656af6317e28b466996a72cca019d97b42d
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>
Acked-by: Frederic Weisbecker <fweisbec@gmail.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