VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / ppc64 / oprofile / op_model_power4.c
index 6b132a8..8a0e7a8 100644 (file)
@@ -42,7 +42,7 @@ static void power4_reg_setup(struct op_counter_config *ctr,
         *
         * It has been verified to work on POWER5 so we enable it there.
         */
-       if (!(__is_processor(PV_POWER4) || __is_processor(PV_POWER4p)))
+       if (cur_cpu_spec->cpu_features & CPU_FTR_MMCRA_SIHV)
                mmcra_has_sihv = 1;
 
        for (i = 0; i < num_counters; ++i)