[PATCH] PPC64 can do preempt debug too

Paul Mackerras paulus at samba.org
Thu Jan 13 21:45:06 EST 2005


This patch enables the DEBUG_PREEMPT config option for PPC64.  I have
this turned on on my desktop G5 and it isn't finding any problems.
(It did find one problem, in flush_tlb_pending(), that I have just
sent a patch for.)

BTW, do we really need to restrict which architectures the config
option is available on?

Signed-off-by: Paul Mackerras <paulus at samba.org>

diff -urN linux-2.5/include/asm-ppc64/smp.h test/include/asm-ppc64/smp.h
--- linux-2.5/include/asm-ppc64/smp.h	2004-11-26 20:40:32.000000000 +1100
+++ test/include/asm-ppc64/smp.h	2005-01-10 19:49:03.000000000 +1100
@@ -38,7 +38,7 @@
 extern void smp_message_recv(int, struct pt_regs *);
 
 
-#define smp_processor_id() (get_paca()->paca_index)
+#define __smp_processor_id() (get_paca()->paca_index)
 #define hard_smp_processor_id() (get_paca()->hw_cpu_id)
 
 extern cpumask_t cpu_sibling_map[NR_CPUS];
diff -urN linux-2.5/lib/Kconfig.debug test/lib/Kconfig.debug
--- linux-2.5/lib/Kconfig.debug	2005-01-11 08:57:21.000000000 +1100
+++ test/lib/Kconfig.debug	2005-01-11 09:13:28.000000000 +1100
@@ -50,7 +50,7 @@
 
 config DEBUG_PREEMPT
 	bool "Debug preemptible kernel"
-	depends on PREEMPT && X86
+	depends on PREEMPT && (X86 || PPC64)
 	default y
 	help
 	  If you say Y here then the kernel will use a debug variant of the



More information about the Linuxppc64-dev mailing list