kern/108581: [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argument

Bruce Cran bruce at cran.org.uk
Wed Mar 25 16:20:05 PDT 2009


The following reply was made to PR kern/108581; it has been noted by GNATS.

From: Bruce Cran <bruce at cran.org.uk>
To: bug-followup at FreeBSD.org, lars.stokholm at gmail.com
Cc:  
Subject: Re: kern/108581: [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid
 argument
Date: Wed, 25 Mar 2009 23:13:55 +0000

 --MP_/.Mqqm3g9tTbq0b=KU9SrVSj
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 
 --MP_/.Mqqm3g9tTbq0b=KU9SrVSj
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=acpi_cpu.c.diff.txt
 
 --- acpi_cpu.c	2009-03-25 23:06:24.000000000 +0000
 +++ sys/dev/acpica/acpi_cpu.c	2009-03-25 23:07:45.000000000 +0000
 @@ -742,7 +742,7 @@
       */
      acpi_cpu_quirks();
  
 -    cpu_cx_count = 0;
 +    cpu_cx_count = 3;
      if (cpu_cx_generic) {
  	/*
  	 * We are using generic Cx mode, probe for available Cx states
 @@ -775,7 +775,7 @@
  	    if (cpu_quirks & CPU_QUIRK_NO_C3) {
  		sc->cpu_cx_count = sc->cpu_non_c3 + 1;
  	    }
 -	    if (sc->cpu_cx_count > cpu_cx_count)
 +	    if (sc->cpu_cx_count < cpu_cx_count)
  		cpu_cx_count = sc->cpu_cx_count;
  	    AcpiInstallNotifyHandler(sc->cpu_handle, ACPI_DEVICE_NOTIFY,
  		acpi_cpu_notify, sc);
 
 --MP_/.Mqqm3g9tTbq0b=KU9SrVSj--


More information about the freebsd-acpi mailing list