cpu: Move CPU hotplug function declarations into their own header
authorTony Luck <tony.luck@intel.com>
Mon, 10 Jun 2024 00:39:24 +0000 (17:39 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 10 Jun 2024 06:50:01 +0000 (08:50 +0200)
commit195fb517ee25bfefde9c74ecd86348eccbd6d2e4
tree2e8fb9e5232cacccb22e2afc38dd41c125002726
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
cpu: Move CPU hotplug function declarations into their own header

Avoid upcoming #include hell when <linux/cachinfo.h> wants to use
lockdep_assert_cpus_held() and creates a #include loop that would
break the build for arch/riscv.

  [ bp: s/cpu/CPU/g ]

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240610003927.341707-2-tony.luck@intel.com
include/linux/cpu.h
include/linux/cpuhplock.h [new file with mode: 0644]