summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2006-08-25 20:53:00 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2006-08-25 20:53:00 +0000
commit1acad50124a61035e7b90555b0bd65d74c0aca74 (patch)
treea5dc111bb45a1a8c77d2301b1e14e2ec69361fc6 /sys/arch/amd64
parent5a6bcf8bb7c3927426097e85184a3213c0b83bcd (diff)
Be a little less agressive in declaring the change pending bit stuck, increase
the number of retries by two orders of magnitude wont affect most systems but will make transitions smoother on marginal ones, if people see "change pending bit stuck" printed to the console after this I would like to hear about it. tested by and ok niallo@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/powernow-k8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/powernow-k8.c b/sys/arch/amd64/amd64/powernow-k8.c
index 9f75d1eca29..d4a211f7862 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.9 2006/08/24 20:52:21 gwk Exp $ */
+/* $OpenBSD: powernow-k8.c,v 1.10 2006/08/25 20:52:59 gwk Exp $ */
/*
* Copyright (c) 2004 Martin Végiard.
* All rights reserved.
@@ -165,7 +165,7 @@ int k8pnow_states(struct k8pnow_cpu_state *, uint32_t, unsigned int,
int
k8pnow_read_pending_wait(uint64_t *status)
{
- unsigned int i = 1000;
+ unsigned int i = 100000;
while (i--) {
*status = rdmsr(MSR_AMDK7_FIDVID_STATUS);