diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-09-15 10:02:15 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-09-15 10:02:15 +0100 |
commit | ec5446eae22d8ace3b67d0752d3620098d68fe7f (patch) | |
tree | 542d61bf2ce0065b974b78980ec8ce47bbb8f349 /xen/arch/x86/oprofile | |
parent | d7981a98b85da107469c9ea67375243471ef421a (diff) | |
download | xen-ec5446eae22d8ace3b67d0752d3620098d68fe7f.tar.gz xen-ec5446eae22d8ace3b67d0752d3620098d68fe7f.tar.bz2 xen-ec5446eae22d8ace3b67d0752d3620098d68fe7f.zip |
xenoprof: add support for Core i7 and Atom.
Signed-off-by: Yang Zhang <yang.zhang@intel.com>
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/nmi_int.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xen/arch/x86/oprofile/nmi_int.c b/xen/arch/x86/oprofile/nmi_int.c index 89040890d6..7ab1573364 100644 --- a/xen/arch/x86/oprofile/nmi_int.c +++ b/xen/arch/x86/oprofile/nmi_int.c @@ -357,24 +357,30 @@ static int __init ppro_init(char ** cpu_type) *cpu_type = "i386/pii"; break; case 6 ... 8: + case 10 ... 11: *cpu_type = "i386/piii"; break; case 9: + case 13: *cpu_type = "i386/p6_mobile"; break; - case 10 ... 13: - *cpu_type = "i386/p6"; - break; case 14: *cpu_type = "i386/core"; break; case 15: case 23: - case 26: case 29: *cpu_type = "i386/core_2"; ppro_has_global_ctrl = 1; break; + case 26: + *cpu_type = "i386/core_i7"; + ppro_has_global_ctrl = 1; + break; + case 28: + *cpu_type = "i386/atom"; + ppro_has_global_ctrl = 1; + break; default: /* Unknown */ printk("xenoprof: Initialization failed. " |