Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Contrary to the previous, use aprint_error(9) b...
details: https://anonhg.NetBSD.org/src/rev/a790811e8528
branches: trunk
changeset: 766432:a790811e8528
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Jun 22 08:05:10 2011 +0000
description:
Contrary to the previous, use aprint_error(9) but suppress warnings
caused by the (optional) BIOS-based dynamic voltage and frequency scaling.
diffstat:
sys/dev/acpi/acpi_cpu_pstate.c | 11 ++++++-----
sys/dev/acpi/acpi_cpu_tstate.c | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
diffs (78 lines):
diff -r 158bfe21a7b5 -r a790811e8528 sys/dev/acpi/acpi_cpu_pstate.c
--- a/sys/dev/acpi/acpi_cpu_pstate.c Wed Jun 22 06:23:07 2011 +0000
+++ b/sys/dev/acpi/acpi_cpu_pstate.c Wed Jun 22 08:05:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_pstate.c,v 1.49 2011/06/04 18:03:10 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_pstate.c,v 1.50 2011/06/22 08:05:10 jruoho Exp $ */
/*-
* Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_pstate.c,v 1.49 2011/06/04 18:03:10 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_pstate.c,v 1.50 2011/06/22 08:05:10 jruoho Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -965,7 +965,7 @@
return 0;
fail:
- aprint_debug_dev(sc->sc_dev, "failed "
+ aprint_error_dev(sc->sc_dev, "failed "
"to get frequency (err %d)\n", rv);
mutex_enter(&sc->sc_mtx);
@@ -1099,8 +1099,9 @@
return;
fail:
- aprint_debug_dev(sc->sc_dev, "failed to set "
- "frequency to %u (err %d)\n", freq, rv);
+ if (rv != EINVAL)
+ aprint_error_dev(sc->sc_dev, "failed to set "
+ "frequency to %u (err %d)\n", freq, rv);
mutex_enter(&sc->sc_mtx);
sc->sc_pstate_current = ACPICPU_P_STATE_UNKNOWN;
diff -r 158bfe21a7b5 -r a790811e8528 sys/dev/acpi/acpi_cpu_tstate.c
--- a/sys/dev/acpi/acpi_cpu_tstate.c Wed Jun 22 06:23:07 2011 +0000
+++ b/sys/dev/acpi/acpi_cpu_tstate.c Wed Jun 22 08:05:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_tstate.c,v 1.28 2011/06/04 18:03:10 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_tstate.c,v 1.29 2011/06/22 08:05:10 jruoho Exp $ */
/*-
* Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_tstate.c,v 1.28 2011/06/04 18:03:10 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_tstate.c,v 1.29 2011/06/22 08:05:10 jruoho Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -740,7 +740,7 @@
return 0;
fail:
- aprint_debug_dev(sc->sc_dev, "failed "
+ aprint_error_dev(sc->sc_dev, "failed "
"to get T-state (err %d)\n", rv);
mutex_enter(&sc->sc_mtx);
@@ -881,8 +881,9 @@
return;
fail:
- aprint_debug_dev(sc->sc_dev, "failed to "
- "throttle to %u %% (err %d)\n", percent, rv);
+ if (rv != EINVAL)
+ aprint_error_dev(sc->sc_dev, "failed to "
+ "throttle to %u %% (err %d)\n", percent, rv);
mutex_enter(&sc->sc_mtx);
sc->sc_tstate_current = ACPICPU_T_STATE_UNKNOWN;
Home |
Main Index |
Thread Index |
Old Index