powerpc/64: context tracking remove _TIF_NOHZ
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:40 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:12 +0000 (00:02 +1100)
commit2a06bf3e95cd93e3640d431960181b8e47415f33
tree053f9595d45c435259e0ed2e10ae78c3dc5e4833
parente6f8a6c86ce7b2108c03c1cc014fdae278573df1
powerpc/64: context tracking remove _TIF_NOHZ

Add context tracking to the system call handler explicitly, and remove
_TIF_NOHZ.

This improves system call performance when nohz_full is enabled. On a
POWER9, gettid scv system call cost on a nohz_full CPU improves from
1129 cycles to 1004 cycles and on a housekeeping CPU from 550 cycles
to 430 cycles.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-31-npiggin@gmail.com
arch/powerpc/Kconfig
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/ptrace/ptrace.c
arch/powerpc/kernel/signal.c
arch/powerpc/kernel/syscall_64.c