Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 14:29:50 +0900
From:      Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
To:        Trent Nelson <trent@limekiln.vcisp.net>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: System freeze running -current
Message-ID:  <20030109142950.6d488c39.taku@cent.saitama-u.ac.jp>
In-Reply-To: <20030104175525.GA9667@limekiln.vcisp.net>
References:  <20030103151234.GA21140@arpa.com> <Pine.BSF.4.21.0301031114110.98827-100000@root.org> <20030104175525.GA9667@limekiln.vcisp.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi all,

On Sat, 4 Jan 2003 17:55:25 +0000
Trent Nelson <trent@limekiln.vcisp.net> wrote:
>     No.  However, it happened to me today shorty after I issued a sysctl
>     -w hw.acpi.cpu.economy_speed=8.  (Why does it default to 4 anyway?)

It reminded me of my tiny local patch.

--- src/sys/dev/acpica/acpi_cpu.c.orig	Thu Oct 17 02:28:52 2002
+++ src/sys/dev/acpica/acpi_cpu.c	Mon Dec 23 12:58:28 2002
@@ -328,7 +328,7 @@
 	if (speed < CPU_MAX_SPEED) {
 
 	    /* mask the old CLK_VAL off and or-in the new value */
-	    clk_val = CPU_MAX_SPEED << cpu_duty_offset;
+	    clk_val = (CPU_MAX_SPEED - 1) << cpu_duty_offset;
 	    p_cnt &= ~clk_val;
 	    p_cnt |= (speed << cpu_duty_offset);
 	

Virtually yours,
	Taku
-- 
YAMAMOTO, Taku  <taku@cent.saitama-u.ac.jp>
    Digital circuits are made from analog parts.
		-- Don Vonada

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030109142950.6d488c39.taku>