mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
Xen / ACPI / processor: use invalid_logical_cpuid()
Use invalid_logical_cpuid(pr->id) instead of direct comparison. Signed-off-by: Hanjun Guo <[email protected]> CC: Boris Ostrovsky <[email protected]> CC: Stefano Stabellini <[email protected]> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
25956b6612
commit
16eac059a6
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ static int xen_acpi_processor_enable(struct acpi_device *device)
|
|||
|
||||
pr->id = xen_pcpu_id(pr->acpi_id);
|
||||
|
||||
if ((int)pr->id < 0)
|
||||
if (invalid_logical_cpuid(pr->id))
|
||||
/* This cpu is not presented at hypervisor, try to hotadd it */
|
||||
if (ACPI_FAILURE(xen_acpi_cpu_hotadd(pr))) {
|
||||
pr_err(PREFIX "Hotadd CPU (acpi_id = %d) failed.\n",
|
||||
|
|
@ -226,7 +226,7 @@ static acpi_status xen_acpi_cpu_hotadd(struct acpi_processor *pr)
|
|||
return AE_ERROR;
|
||||
|
||||
pr->id = xen_hotadd_cpu(pr);
|
||||
if ((int)pr->id < 0)
|
||||
if (invalid_logical_cpuid(pr->id))
|
||||
return AE_ERROR;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue