PURR should use correct cpu feature bit
PATCH 1/1 PURR should use correct cpu feature bit
Now we have a PURR cpu feature bit, we should use it in sysfs code.
Signed-off-by Anton Blanchard <[email protected]>
---
arch/powerpc/kernel/sysfs.c +2 -2
@@ -231,7 +231,7 @@ #endifif (cur_cpu_spec->num_pmcs >=8 )sysdev_create_file (s, &attr_pmc8); -if (cpu_has_feature (CPU_FTR_SMT )) +if (cpu_has_feature (CPU_FTR_PURR ))sysdev_create_file (s, &attr_purr); }
@@ -273,7 +273,7 @@ #endifif (cur_cpu_spec->num_pmcs >=8 )sysdev_remove_file (s, &attr_pmc8); -if (cpu_has_feature (CPU_FTR_SMT )) +if (cpu_has_feature (CPU_FTR_PURR )) sysdev_remove_file(s, &attr_purr); }#endif /* CONFIG_HOTPLUG_CPU */
Quoted 1 line
Now we have a PURR cpu feature bit, we should use it in sysfs code.
Snap... Paulus has this in his tree for 2.6.19
Mikey