|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] CPUIDLE: Adjust Cx residency to contain C
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1221041833 -3600
# Node ID cfbe4df8d47c4fb1644eb5dfea5fa664bfaaf7c6
# Parent 020b8340e83938b1b7693bffbd445f616063ea22
CPUIDLE: Adjust Cx residency to contain Cx exit latency & overhead.
Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---
xen/arch/x86/acpi/cpu_idle.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff -r 020b8340e839 -r cfbe4df8d47c xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c Wed Sep 10 11:16:26 2008 +0100
+++ b/xen/arch/x86/acpi/cpu_idle.c Wed Sep 10 11:17:13 2008 +0100
@@ -402,8 +402,7 @@ static void acpi_processor_idle(void)
/* Re-enable interrupts */
local_irq_enable();
/* Compute time (ticks) that we were actually asleep */
- sleep_ticks =
- ticks_elapsed(t1, t2) - cx->latency_ticks - C2_OVERHEAD;
+ sleep_ticks = ticks_elapsed(t1, t2);
break;
case ACPI_STATE_C3:
@@ -471,8 +470,6 @@ static void acpi_processor_idle(void)
lapic_timer_on();
/* Compute time (ticks) that we were actually asleep */
sleep_ticks = ticks_elapsed(t1, t2);
- /* Do not account our idle-switching overhead: */
- sleep_ticks -= cx->latency_ticks + C3_OVERHEAD;
break;
@@ -482,7 +479,7 @@ static void acpi_processor_idle(void)
}
cx->usage++;
- if ( (cx->type != ACPI_STATE_C1) && (sleep_ticks > 0) )
+ if ( sleep_ticks > 0 )
cx->time += sleep_ticks;
next_state = power->state;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] CPUIDLE: Adjust Cx residency to contain Cx exit latency & overhead.,
Xen patchbot-unstable <=
|
|
|
|
|