diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-11-16 16:55:28 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2007-11-16 16:55:28 +0000 |
commit | 5ef019d8f1d8f79a50661b862e4cae63ff24035e (patch) | |
tree | 34a450037736fcc9b3b6c5c8422034cea6605777 /sys/dev | |
parent | a58972613fe77fc2e2cd9b6d4294984d52a3aee9 (diff) |
Fix dmesg output. From form@.
ok deraadt
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/acpicpu.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/sys/dev/acpi/acpicpu.c b/sys/dev/acpi/acpicpu.c index cd842919443..9c79657a572 100644 --- a/sys/dev/acpi/acpicpu.c +++ b/sys/dev/acpi/acpicpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpicpu.c,v 1.33 2007/11/16 16:16:04 deraadt Exp $ */ +/* $OpenBSD: acpicpu.c,v 1.34 2007/11/16 16:55:27 mikeb Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -349,21 +349,23 @@ acpicpu_attach(struct device *parent, struct device *self, void *aux) } } - if (!(sc->sc_flags & (FLAGS_NOPSS | FLAGS_NOPCT | FLAGS_NOPSS))) + if (!(sc->sc_flags & (FLAGS_NOPSS | FLAGS_NOPCT)) || + !(sc->sc_flags & FLAGS_NOPSS)) { printf("%c ", SLIST_EMPTY(&sc->sc_cstates) ? ':' : ','); - /* - * If acpicpu is itself providing the capability to transition - * states, enumerate them in the fashion that est and powernow - * would. - */ - if (!(sc->sc_flags & FLAGS_NOPSS) && !(sc->sc_flags & FLAGS_NOPCT)) { - printf("FVS, "); - for (i = 0; i < sc->sc_pss_len - 1; i++) - printf("%d, ", sc->sc_pss[i].pss_core_freq); - printf("%d MHz", sc->sc_pss[i].pss_core_freq); - } else if (!(sc->sc_flags & FLAGS_NOPSS)) - printf("PSS"); + /* + * If acpicpu is itself providing the capability to transition + * states, enumerate them in the fashion that est and powernow + * would. + */ + if (!(sc->sc_flags & (FLAGS_NOPSS | FLAGS_NOPCT))) { + printf("FVS, "); + for (i = 0; i < sc->sc_pss_len - 1; i++) + printf("%d, ", sc->sc_pss[i].pss_core_freq); + printf("%d MHz", sc->sc_pss[i].pss_core_freq); + } else + printf("PSS"); + } printf("\n"); } |