diff options
author | 2006-03-16 02:35:08 +0000 | |
---|---|---|
committer | 2006-03-16 02:35:08 +0000 | |
commit | b4cc6758a10a24b295c1948ea38927a0c06d7b9d (patch) | |
tree | 9c265e7edbfcea80f27b1b8fbb7edb310805c5d6 | |
parent | if the link is down then show a media status of none. (diff) | |
download | wireguard-openbsd-b4cc6758a10a24b295c1948ea38927a0c06d7b9d.tar.xz wireguard-openbsd-b4cc6758a10a24b295c1948ea38927a0c06d7b9d.zip |
display the possible speedstep values like we do on intel chips.
from gwk, ok deraadt@
-rw-r--r-- | sys/arch/amd64/amd64/powernow-k8.c | 15 | ||||
-rw-r--r-- | sys/arch/i386/i386/powernow-k8.c | 15 |
2 files changed, 14 insertions, 16 deletions
diff --git a/sys/arch/amd64/amd64/powernow-k8.c b/sys/arch/amd64/amd64/powernow-k8.c index f457c322ffc..e233f6630d5 100644 --- a/sys/arch/amd64/amd64/powernow-k8.c +++ b/sys/arch/amd64/amd64/powernow-k8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: powernow-k8.c,v 1.2 2006/03/15 19:56:00 deraadt Exp $ */ +/* $OpenBSD: powernow-k8.c,v 1.3 2006/03/16 02:35:08 dlg Exp $ */ /* * Copyright (c) 2004 Martin Végiard. * All rights reserved. @@ -392,14 +392,13 @@ k8_powernow_init(void) if (k8pnow_states(cstate, ci->ci_signature, maxfid, maxvid)) { if (cstate->n_states) { - printf("%s: AMD %s available states ", - ci->ci_dev->dv_xname, techname); - for(i= 0; i < cstate->n_states; i++) { - state = &cstate->state_table[i]; - printf("%c%d", i==0 ? '(' : ',', - state->freq); + printf("%s: %s %d Mhz: speeds:", + ci->ci_dev->dv_xname, techname, cpuspeed); + for(i = cstate->n_states; i > 0; i--) { + state = &cstate->state_table[i-1]; + printf(" %d", state->freq); } - printf(")\n"); + printf(" Mhz\n"); k8pnow_current_state = cstate; cpu_setperf = k8_powernow_setperf; } diff --git a/sys/arch/i386/i386/powernow-k8.c b/sys/arch/i386/i386/powernow-k8.c index a8d4ed0acb8..5a8e0367bfa 100644 --- a/sys/arch/i386/i386/powernow-k8.c +++ b/sys/arch/i386/i386/powernow-k8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: powernow-k8.c,v 1.5 2006/03/15 19:56:48 deraadt Exp $ */ +/* $OpenBSD: powernow-k8.c,v 1.6 2006/03/16 02:35:08 dlg Exp $ */ /* * Copyright (c) 2004 Martin Végiard. @@ -394,14 +394,13 @@ k8_powernow_init(void) if (k8pnow_states(cstate, ci->ci_signature, maxfid, maxvid)) { if (cstate->n_states) { - printf("%s: AMD %s available states ", - ci->ci_dev.dv_xname, techname); - for (i= 0; i < cstate->n_states; i++) { - state = &cstate->state_table[i]; - printf("%c%d", i==0 ? '(' : ',', - state->freq); + printf("%s: %s %d Mhz: speeds:", + ci->ci_dev.dv_xname, techname, pentium_mhz); + for (i = cstate->n_states; i > 0; i--) { + state = &cstate->state_table[i-1]; + printf(" %d", state->freq); } - printf(")\n"); + printf(" Mhz\n"); k8pnow_current_state = cstate; cpu_setperf = k8_powernow_setperf; } |