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>
Showing
- arch/tile/Kconfig 1 addition, 0 deletionsarch/tile/Kconfig
- arch/tile/include/asm/thread_info.h 6 additions, 3 deletionsarch/tile/include/asm/thread_info.h
- arch/tile/kernel/process.c 8 additions, 4 deletionsarch/tile/kernel/process.c
- arch/tile/kernel/ptrace.c 20 additions, 2 deletionsarch/tile/kernel/ptrace.c
- arch/tile/kernel/single_step.c 3 additions, 0 deletionsarch/tile/kernel/single_step.c
- arch/tile/kernel/traps.c 9 additions, 7 deletionsarch/tile/kernel/traps.c
- arch/tile/kernel/unaligned.c 13 additions, 9 deletionsarch/tile/kernel/unaligned.c
- arch/tile/mm/fault.c 7 additions, 3 deletionsarch/tile/mm/fault.c
Please register or sign in to comment