perf/x86: Avoid TIF_IA32 when checking 64bit mode
authorGabriel Krisman Bertazi <krisman@collabora.com>
Sun, 4 Oct 2020 03:25:27 +0000 (23:25 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 Oct 2020 12:46:46 +0000 (13:46 +0100)
commit375d4bfda57392f0865dae051e1c4bd2700e8d71
treecc2258a1a4fef887012ee331b39f8fdeb35f81c5
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
perf/x86: Avoid TIF_IA32 when checking 64bit mode

In preparation to remove TIF_IA32, stop using it in perf events code.

Tested by running perf on 32-bit, 64-bit and x32 applications.

Suggested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20201004032536.1229030-2-krisman@collabora.com
arch/x86/events/core.c
arch/x86/events/intel/ds.c
arch/x86/events/intel/lbr.c
arch/x86/kernel/perf_regs.c