diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-03-19 16:03:23 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-05-23 12:34:00 -0400 |
commit | 1a4b50f674d0d2f66569f08d063996971b7d48f2 (patch) | |
tree | cb4cc1df80a6c3f77c3d6b8e21f1b1b012872f45 | |
parent | 0a9fd0152929db372ff61b0d6c280fdd34ae8bdb (diff) |
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: Don Slutz <dslutz@verizon.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r-- | drivers/xen/xen-acpi-processor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c index 82358d14ecf1..59fc190f1e92 100644 --- a/drivers/xen/xen-acpi-processor.c +++ b/drivers/xen/xen-acpi-processor.c | |||
@@ -127,7 +127,7 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr) | |||
127 | pr_debug(" C%d: %s %d uS\n", | 127 | pr_debug(" C%d: %s %d uS\n", |
128 | cx->type, cx->desc, (u32)cx->latency); | 128 | cx->type, cx->desc, (u32)cx->latency); |
129 | } | 129 | } |
130 | } else if (ret != -EINVAL) | 130 | } else if ((ret != -EINVAL) && (ret != -ENOSYS)) |
131 | /* EINVAL means the ACPI ID is incorrect - meaning the ACPI | 131 | /* EINVAL means the ACPI ID is incorrect - meaning the ACPI |
132 | * table is referencing a non-existing CPU - which can happen | 132 | * table is referencing a non-existing CPU - which can happen |
133 | * with broken ACPI tables. */ | 133 | * with broken ACPI tables. */ |
@@ -259,7 +259,7 @@ static int push_pxx_to_hypervisor(struct acpi_processor *_pr) | |||
259 | (u32) perf->states[i].power, | 259 | (u32) perf->states[i].power, |
260 | (u32) perf->states[i].transition_latency); | 260 | (u32) perf->states[i].transition_latency); |
261 | } | 261 | } |
262 | } else if (ret != -EINVAL) | 262 | } else if ((ret != -EINVAL) && (ret != -ENOSYS)) |
263 | /* EINVAL means the ACPI ID is incorrect - meaning the ACPI | 263 | /* EINVAL means the ACPI ID is incorrect - meaning the ACPI |
264 | * table is referencing a non-existing CPU - which can happen | 264 | * table is referencing a non-existing CPU - which can happen |
265 | * with broken ACPI tables. */ | 265 | * with broken ACPI tables. */ |