ACPI / processor: Introduce invalid_phys_cpuid()
Introduce invalid_phys_cpuid() to identify cpu with invalid physical ID, then used it as replacement of the direct comparisons with PHYS_CPUID_INVALID. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
d3da7cb9d2
commit
ddcc18f5bd
@@ -163,6 +163,11 @@ static inline bool invalid_logical_cpuid(u32 cpuid)
|
||||
return (int)cpuid < 0;
|
||||
}
|
||||
|
||||
static inline bool invalid_phys_cpuid(phys_cpuid_t phys_id)
|
||||
{
|
||||
return phys_id == PHYS_CPUID_INVALID;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ACPI_HOTPLUG_CPU
|
||||
/* Arch dependent functions for cpu hotplug support */
|
||||
int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu);
|
||||
|
Reference in New Issue
Block a user