x86: Move sysctls into arch/x86
authorJoel Granados <joel.granados@kernel.org>
Tue, 18 Feb 2025 09:56:24 +0000 (10:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Feb 2025 10:08:36 +0000 (11:08 +0100)
commitc305a4e98378903da5322c598381ad1ce643f4b4
treef36311ac2fe1863b07445655cefe1b7d343a3f94
parente8f925c320478ee28b7ff89be56f19057f979365
x86: Move sysctls into arch/x86

Move the following sysctl tables into arch/x86/kernel/setup.c:

  panic_on_{unrecoverable_nmi,io_nmi}
  bootloader_{type,version}
  io_delay_type
  unknown_nmi_panic
  acpi_realmode_flags

Variables moved from include/linux/ to arch/x86/include/asm/ because there
is no longer need for them outside arch/x86/kernel:

  acpi_realmode_flags
  panic_on_{unrecoverable_nmi,io_nmi}

Include <asm/nmi.h> in arch/s86/kernel/setup.h in order to bring in
panic_on_{io_nmi,unrecovered_nmi}.

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kerenel/sysctl.c.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250218-jag-mv_ctltables-v1-8-cd3698ab8d29@kernel.org
arch/x86/include/asm/setup.h
arch/x86/include/asm/traps.h
arch/x86/kernel/setup.c
include/linux/acpi.h
kernel/sysctl.c