x86/traps: Use current_top_of_stack() helper in traps.c
authorUros Bizjak <ubizjak@gmail.com>
Mon, 4 Dec 2023 21:02:30 +0000 (22:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 Dec 2023 10:47:15 +0000 (11:47 +0100)
commit13408c6ae684181d53c870cceddbd3a62ae34c3e
tree0c32ced2bf6b1022247a6307e4e77d76b3f33518
parent0e3703630bd3fead041a6bfb3a3f2a9891af6c34
x86/traps: Use current_top_of_stack() helper in traps.c

Use current_top_of_stack() helper in sync_regs() and vc_switch_off_ist()
instead of open-coding the reading of  the top_of_stack percpu variable
explicitly.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20231204210320.114429-2-ubizjak@gmail.com
arch/x86/kernel/traps.c