xenoprof: Add support for Intel Dunnington cores.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Dec 2008 11:29:33 +0000 (11:29 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 18 Dec 2008 11:29:33 +0000 (11:29 +0000)
Signed-off-by: Xiaowei Yang <Xiaowei.yang@intel.com>
Signed-off-by: Ting Zhou <ting.g.zhou@intel.com>
xen/arch/x86/oprofile/nmi_int.c

index 4f62262cec00493e36811f6f9798df8b1eb7d9a0..ef5d1227fdfb0cde9c8de6c74cb5848b3d7f78e3 100644 (file)
@@ -65,6 +65,8 @@ int passive_domain_do_wrmsr(struct cpu_user_regs *regs)
        int type, index;
        struct vpmu_struct *vpmu = vcpu_vpmu(current);
 
+       if ( model == NULL )
+               return 0;
        if ( model->is_arch_pmu_msr == NULL )
                return 0;
        if ( !model->is_arch_pmu_msr((u64)regs->ecx, &type, &index) )
@@ -366,11 +368,10 @@ static int __init ppro_init(char ** cpu_type)
        case 14:
                *cpu_type = "i386/core";
                break;
-       case 15: case 23:
-               *cpu_type = "i386/core_2";
-               ppro_has_global_ctrl = 1;
-               break;
+       case 15:
+       case 23:
        case 26:
+       case 29:
                *cpu_type = "i386/core_2";
                ppro_has_global_ctrl = 1;
                break;