[Intel-gfx] [PATCH 4/4] cpuidle: Hack iowait weighting to avoid C-state reduction for graphics.

Eric Anholt eric at anholt.net
Mon Nov 1 21:23:44 CET 2010


Improves nexuiz performance by about 1% on my system.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 drivers/cpuidle/governors/menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c
index f508690..9bb5654 100644
--- a/drivers/cpuidle/governors/menu.c
+++ b/drivers/cpuidle/governors/menu.c
@@ -175,7 +175,7 @@ static inline int performance_multiplier(void)
 	mult += 2 * get_loadavg();
 
 	/* for IO wait tasks (per cpu!) we add 5x each */
-	mult += 10 * nr_iowait_cpu(smp_processor_id());
+	mult += 1000 * nr_iowait_cpu(smp_processor_id());
 
 	return mult;
 }
-- 
1.7.2.3




More information about the Intel-gfx mailing list