Skip to contentSkip to conversation

Enable PURR sysfs entry correctly

PATCH New Michael Neuling 1 participant 1 message Jul 28, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable PURR sysfs entry correctly

We have CPU_FTR_PURR now, so let's use it.

---
 arch/powerpc/kernel/sysfs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/sysfs.c +2 -2
Index: linux-2.6-ozlabs/arch/powerpc/kernel/sysfs.c
===================================================================
@@ -231,7 +231,7 @@ static void register_cpu_online(unsigned
 	if (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 @@ static void unregister_cpu_online(unsign
 	if (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 */