x86/percpu: Return correct variable from current_top_of_stack()
authorUros Bizjak <ubizjak@gmail.com>
Tue, 24 Oct 2023 14:28:14 +0000 (16:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Oct 2023 16:37:20 +0000 (18:37 +0200)
commit0548eb067ed664b93043e033295ca71e3e706245
treeceee4f42779a05511f964e1611281418561a839d
parented2f752e0e0a21d941ca0ee539ef3d4cd576bc5e
x86/percpu: Return correct variable from current_top_of_stack()

current_top_of_stack() should return variable from _seg_gs
qualified named address space when CONFIG_USE_X86_SEG_SUPPORT=y
is enbled.

Fixes: ed2f752e0e0a ("x86/percpu: Introduce const-qualified const_pcpu_hot to micro-optimize code generation")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231024142830.3226-1-ubizjak@gmail.com
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/processor.h