Commit 1a4b50f6 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk

xen-acpi-processor: Don't display errors when we get -ENOSYS

which is a perfectly legal error. This can be triggered if the
user has booted Xen with the no-cpuidle parameter.
Reported-by-and-Tested-by: default avatarDon Slutz <dslutz@verizon.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 0a9fd015
...@@ -127,7 +127,7 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr) ...@@ -127,7 +127,7 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr)
pr_debug(" C%d: %s %d uS\n", pr_debug(" C%d: %s %d uS\n",
cx->type, cx->desc, (u32)cx->latency); cx->type, cx->desc, (u32)cx->latency);
} }
} else if (ret != -EINVAL) } else if ((ret != -EINVAL) && (ret != -ENOSYS))
/* EINVAL means the ACPI ID is incorrect - meaning the ACPI /* EINVAL means the ACPI ID is incorrect - meaning the ACPI
* table is referencing a non-existing CPU - which can happen * table is referencing a non-existing CPU - which can happen
* with broken ACPI tables. */ * with broken ACPI tables. */
...@@ -259,7 +259,7 @@ static int push_pxx_to_hypervisor(struct acpi_processor *_pr) ...@@ -259,7 +259,7 @@ static int push_pxx_to_hypervisor(struct acpi_processor *_pr)
(u32) perf->states[i].power, (u32) perf->states[i].power,
(u32) perf->states[i].transition_latency); (u32) perf->states[i].transition_latency);
} }
} else if (ret != -EINVAL) } else if ((ret != -EINVAL) && (ret != -ENOSYS))
/* EINVAL means the ACPI ID is incorrect - meaning the ACPI /* EINVAL means the ACPI ID is incorrect - meaning the ACPI
* table is referencing a non-existing CPU - which can happen * table is referencing a non-existing CPU - which can happen
* with broken ACPI tables. */ * with broken ACPI tables. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment