From: Bruno Ducrot <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
To: Luca Capello <luca-wlebWZzHoyE@public.gmane.org>
Cc: ML ACPI-devel
<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: ASUS M6800N: processor has only C1
Date: Fri, 5 Mar 2004 12:39:21 +0100 [thread overview]
Message-ID: <20040305113921.GS2869@poupinou.org> (raw)
In-Reply-To: <404734E8.7080104-wlebWZzHoyE@public.gmane.org>
On Thu, Mar 04, 2004 at 02:53:44PM +0100, Luca Capello wrote:
>
> Hello,
>
> no problem, I forgot to advise you that I can make all the necessary tests to
> bring my new laptop to a completely ACPI working system :-)
Thanks!
>
> > I think also that the bios will only allow C2, not C3 nor C4 if you are on AC.
> You're right, but even on battery I get only C1 & C2 (as from the attached).
Well, there is a stupid bug, I guess.
--- linux-2.6-bk/drivers/acpi/processor.c 2004/03/05 11:14:06 1.3
+++ linux-2.6-bk/drivers/acpi/processor.c 2004/03/05 11:25:58
@@ -666,7 +666,7 @@ acpi_processor_get_power_info_cst (
/* Get all power states */
/* Note that C0 and C1 are filled already by our caller. */
- pr->power.count = 2;
+ pr->power.count = 1;
for (i = 1; i <= count; i++) {
union acpi_object *element;
union acpi_object *obj;
@@ -816,13 +816,10 @@ acpi_processor_get_power_info_cst (
/* All check done. Register this power state. */
cx.valid = 1;
cx.latency_ticks = US_TO_PM_TIMER_TICKS(cx.latency);
- memcpy(&(pr->power.states[pr->power.count]), &cx, sizeof(cx));
(pr->power.count)++;
+ memcpy(&(pr->power.states[pr->power.count]), &cx, sizeof(cx));
}
- /* adjust count. */
- (pr->power.count)--;
-
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found %d power states\n", pr->power.count));
/* Validate number of power states */
--- linux-2.6-bk/include/acpi/processor.h 2004/03/05 11:26:48 1.2
+++ linux-2.6-bk/include/acpi/processor.h 2004/03/05 11:27:39
@@ -5,7 +5,7 @@
#define ACPI_PROCESSOR_BUSY_METRIC 10
-#define ACPI_PROCESSOR_MAX_POWER ACPI_C_STATE_COUNT
+#define ACPI_PROCESSOR_MAX_POWER 8
#define ACPI_PROCESSOR_MAX_C2_LATENCY 100
#define ACPI_PROCESSOR_MAX_C3_LATENCY 1000
--
Bruno Ducrot
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
next prev parent reply other threads:[~2004-03-05 11:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-02 9:55 ASUS M6800N: processor has only C1 Luca Capello
[not found] ` <404459FD.1000406-wlebWZzHoyE@public.gmane.org>
2004-03-02 11:09 ` Bruno Ducrot
[not found] ` <20040302110946.GF2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-02 12:43 ` Luca Capello
[not found] ` <40448169.6090507-wlebWZzHoyE@public.gmane.org>
2004-03-02 14:43 ` Luca Capello
[not found] ` <40449D8E.4060402-wlebWZzHoyE@public.gmane.org>
2004-03-03 10:35 ` Bruno Ducrot
[not found] ` <20040303103528.GG2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-03 20:18 ` Luca Capello
[not found] ` <40463D80.8040800-wlebWZzHoyE@public.gmane.org>
2004-03-04 11:12 ` Bruno Ducrot
[not found] ` <20040304111240.GN2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-04 13:53 ` Luca Capello
[not found] ` <404734E8.7080104-wlebWZzHoyE@public.gmane.org>
2004-03-05 11:39 ` Bruno Ducrot [this message]
[not found] ` <20040305113921.GS2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-05 15:42 ` Luca Capello
[not found] ` <40489FC8.4000605-wlebWZzHoyE@public.gmane.org>
2004-03-05 18:37 ` Bruno Ducrot
[not found] ` <20040305183737.GT2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-05 20:21 ` Luca Capello
2004-03-04 11:45 ` Bruno Ducrot
2004-03-04 12:00 ` Thomas Renninger
[not found] ` <40471A4F.2090909-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
2004-03-04 12:22 ` Thomas Renninger
[not found] ` <40471F8E.5080308-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
2004-03-11 4:17 ` Nate Lawson
2004-03-04 12:36 ` Thomas Renninger
2004-03-05 17:49 ` Luca Capello
2004-03-20 10:29 ` Luca Capello
[not found] ` <405C1D0F.3030209-wlebWZzHoyE@public.gmane.org>
2004-03-20 17:27 ` Herman Sheremetyev
[not found] ` <1079803656.32419.15.camel-l85cmlzfk8I@public.gmane.org>
2004-03-20 18:39 ` Luca Capello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040305113921.GS2869@poupinou.org \
--to=ducrot-kk6yzipjem5g9huczpvpmw@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=luca-wlebWZzHoyE@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox