Date: Wed, 25 Mar 2009 23:20:04 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-acpi@FreeBSD.org Subject: Re: kern/108581: [sysctl] sysctl: hw.acpi.cpu.cx_lowest: Invalid argument Message-ID: <200903252320.n2PNK4nj033068@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/108581; it has been noted by GNATS. From: Bruce Cran <bruce@cran.org.uk> To: bug-followup@FreeBSD.org, lars.stokholm@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903252320.n2PNK4nj033068>