Skip to contentSkip to conversation

processor: always demote to next lower state

PATCH Applied Dominik Brodowski 2 participants 2 messages Dec 23, 2004 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 processor: always demote to next lower state

Let C4 demote to C3, not directly to C2.

---

 drivers/acpi/processor_idle.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)
drivers/acpi/processor_idle.c +1 -4
Index: linux-2.6.10-rc3+bk-acpi/drivers/acpi/processor_idle.c
===================================================================
@@ -425,10 +425,7 @@
 				cx->demotion.threshold.bm = 0x0F;
 		}
 
-		/* from C3 we always demote to C2, even if there are multiple
-		 * states of type C3 available. */
-		if (cx->type < ACPI_STATE_C3)
-			lower = cx;
+		lower = cx;
 	}
 
 	/* promotion */

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

A message that is not in the archive (sent off-list or not yet received): 20041223140747.GC7973-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org

Applied
#2 lore raw

Applied.

thanks,
-Len

Quoted 22 lines · Dominik Brodowski

Let C4 demote to C3, not directly to C2.

---

 drivers/acpi/processor_idle.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

Index: linux-2.6.10-rc3+bk-acpi/drivers/acpi/processor_idle.c
===================================================================
--- linux-2.6.10-rc3+bk-acpi.orig/drivers/acpi/processor_idle.c

2004-12-23 14:25:23.854099002 +0100
+++ linux-2.6.10-rc3+bk-acpi/drivers/acpi/processor_idle.c     
2004-12-23 14:25:28.737417644 +0100
drivers/acpi/processor_idle.c +0 -1
@@ -425,10 +425,7 @@
                                cx->demotion.threshold.bm = 0x0F;
                }
 
-               /* from C3 we always demote to C2, even if there are

multiple

drivers/acpi/processor_idle.c line 431

Quoted 7 lines
drivers/acpi/processor_idle.c +1 -3
-                * states of type C3 available. */
-               if (cx->type < ACPI_STATE_C3)
-                       lower = cx;
+               lower = cx;
        }
 
        /* promotion */

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/