x86/mwait_idle: initial C8, C9, C10 support
authorLen Brown <len.brown@intel.com>
Fri, 30 Aug 2013 09:00:07 +0000 (11:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2013 09:00:07 +0000 (11:00 +0200)
Allow mwait_idle to utilize C8, C9, C10 when they are present on...
"Fourth Generation Intel(R) Core(TM) Processors", which are based on
Intel(R) microarchitecture code name Haswell.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/cpu/mwait-idle.c

index 879963215fdfd4cea668fec24e40fb6613e168d7..85179f2f8118e4f776f27d4759badb86f70b8fe3 100644 (file)
@@ -252,6 +252,24 @@ static const struct cpuidle_state hsw_cstates[] = {
                .exit_latency = 166,
                .target_residency = 500,
        },
+       {
+               .name = "C8-HSW",
+               .flags = MWAIT2flg(0x40) | CPUIDLE_FLAG_TLB_FLUSHED,
+               .exit_latency = 300,
+               .target_residency = 900,
+       },
+       {
+               .name = "C9-HSW",
+               .flags = MWAIT2flg(0x50) | CPUIDLE_FLAG_TLB_FLUSHED,
+               .exit_latency = 600,
+               .target_residency = 1800,
+       },
+       {
+               .name = "C10-HSW",
+               .flags = MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,
+               .exit_latency = 2600,
+               .target_residency = 7700,
+       },
        {}
 };