• Linus Torvalds's avatar
    Merge tag 'x86-boot-2023-06-26' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cffdbe3
    Linus Torvalds authored
    Pull x86 boot updates from Thomas Gleixner:
     "Initialize FPU late.
    
      Right now FPU is initialized very early during boot. There is no real
      requirement to do so. The only requirement is to have it done before
      alternatives are patched.
    
      That's done in check_bugs() which does way more than what the function
      name suggests.
    
      So first rename check_bugs() to arch_cpu_finalize_init() which makes
      it clear what this is about.
    
      Move the invocation of arch_cpu_finalize_init() earlier in
      start_kernel() as it has to be done before fork_init() which needs to
      know the FPU register buffer size.
    
      With those prerequisites the FPU initialization can be moved into
      arch_cpu_finalize_init(), which removes it from the early and fragile
      part of the x86 bringup"
    
    * tag 'x86-boot-2023-06-26' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/mem_encrypt: Unbreak the AMD_MEM_ENCRYPT=n build
      x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
      x86/fpu: Mark init functions __init
      x86/fpu: Remove cpuinfo argument from init functions
      x86/init: Initialize signal frame size late
      init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init()
      init: Invoke arch_cpu_finalize_init() earlier
      init: Remove check_bugs() leftovers
      um/cpu: Switch to arch_cpu_finalize_init()
      sparc/cpu: Switch to arch_cpu_finalize_init()
      sh/cpu: Switch to arch_cpu_finalize_init()
      mips/cpu: Switch to arch_cpu_finalize_init()
      m68k/cpu: Switch to arch_cpu_finalize_init()
      loongarch/cpu: Switch to arch_cpu_finalize_init()
      ia64/cpu: Switch to arch_cpu_finalize_init()
      ARM: cpu: Switch to arch_cpu_finalize_init()
      x86/cpu: Switch to arch_cpu_finalize_init()
      init: Provide arch_cpu_finalize_init()
    7cffdbe3
Kconfig 82.2 KB