linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] PURR should use correct cpu feature bit
  2006-08-18 18:48 [PATCH] PURR should use correct cpu feature bit Anton Blanchard
@ 2006-08-18 19:32 ` Michael Neuling
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Neuling @ 2006-08-18 19:32 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: linuxppc-dev, paulus

> 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

http://git.kernel.org/git/?p=linux/kernel/git/paulus/powerpc.git;a=commit;h=afd05423e02bc7391a7489b686ba1e166b6e8349

Mikey

^ permalink raw reply	[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).