2022-05-31 18:04:11 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2023-09-20 14:26:28 +08:00
|
|
|
#include <linux/acpi.h>
|
2022-05-31 18:04:11 +08:00
|
|
|
#include <linux/cpu.h>
|
2022-05-31 18:04:12 +08:00
|
|
|
#include <linux/cpumask.h>
|
2022-05-31 18:04:11 +08:00
|
|
|
#include <linux/init.h>
|
2022-05-31 18:04:12 +08:00
|
|
|
#include <linux/node.h>
|
|
|
|
#include <linux/nodemask.h>
|
2022-05-31 18:04:11 +08:00
|
|
|
#include <linux/percpu.h>
|
2022-10-12 16:36:08 +08:00
|
|
|
#include <asm/bootinfo.h>
|
2022-05-31 18:04:11 +08:00
|
|
|
|
2023-09-20 14:26:28 +08:00
|
|
|
#include <acpi/processor.h>
|
|
|
|
|
2022-05-31 18:04:12 +08:00
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
2023-11-21 13:45:27 +00:00
|
|
|
bool arch_cpu_is_hotpluggable(int cpu)
|
2022-05-31 18:04:12 +08:00
|
|
|
{
|
2023-11-21 13:45:27 +00:00
|
|
|
return !io_master(cpu);
|
2022-05-31 18:04:12 +08:00
|
|
|
}
|
|
|
|
#endif
|