* [PATCH] PURR should use correct cpu feature bit
@ 2006-08-18 18:48 Anton Blanchard
2006-08-18 19:32 ` Michael Neuling
0 siblings, 1 reply; 2+ messages in thread
From: Anton Blanchard @ 2006-08-18 18:48 UTC (permalink / raw)
To: linuxppc-dev, paulus
Now we have a PURR cpu feature bit, we should use it in sysfs code.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index fec228c..a8172de 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -231,7 +231,7 @@ #endif
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 @@ #endif
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 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-18 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 18:48 [PATCH] PURR should use correct cpu feature bit Anton Blanchard
2006-08-18 19:32 ` Michael Neuling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).