]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/smpboot: Simplify boot CPU setup
authorBrian Gerst <brgerst@gmail.com>
Fri, 24 Feb 2023 15:42:34 +0000 (10:42 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 25 Feb 2023 07:59:57 +0000 (07:59 +0000)
commit52f021e50b22ce113bb34ca01606b1235a77efd3
tree13cd8b265a46faa207bfdc9a0fe261d6367985eb
parent0d6e4293dcbc8e3425b238c0fa3223356b900f63
x86/smpboot: Simplify boot CPU setup

Now that the per-cpu GSBASE, stack, and GDT descriptor can be derived
dynamically by CPU number, the boot CPU can use a fixed CPU number and
take the same path as secondary CPUs.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Tested-by: Usama Arif <usama.arif@bytedance.com>
Signed-off-by: Usama Arif <usama.arif@bytedance.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/head_64.S