]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jun 2023 23:39:46 +0000 (01:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 Jun 2023 08:16:01 +0000 (10:16 +0200)
commitb81fac906a8f9e682e513ddd95697ec7a20878d4
tree4674799ee39e58b4ede501ac9471f7c74672f452
parent1703db2b90c91b2eb2d699519fc505fe431dde0e
x86/fpu: Move FPU initialization into arch_cpu_finalize_init()

Initializing the FPU during the early boot process is a pointless
exercise. Early boot is convoluted and fragile enough.

Nothing requires that the FPU is set up early. It has to be initialized
before fork_init() because the task_struct size depends on the FPU register
buffer size.

Move the initialization to arch_cpu_finalize_init() which is the perfect
place to do so.

No functional change.

This allows to remove quite some of the custom early command line parsing,
but that's subject to the next installment.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230613224545.902376621@linutronix.de
arch/x86/kernel/cpu/common.c