]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/xmon: Fix the 'u' command description
authorJimi Xenidis <jimix@pobox.com>
Thu, 29 Sep 2011 11:25:10 +0000 (11:25 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 25 Nov 2011 03:11:28 +0000 (14:11 +1100)
The 'u' command will print the TLB on book3e parts and the SLB on
Book3s parts, but the help system doesn't say that correctly.

Signed-off-by: Jimi Xenidis <jimix@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/xmon/xmon.c

index 03a217ae3be007949967c6fc15e35aa9bb51ab7c..95cf53b71499e4d3c02e697c5ebc98789b54fc40 100644 (file)
@@ -228,13 +228,11 @@ Commands:\n\
   t    print backtrace\n\
   x    exit monitor and recover\n\
   X    exit monitor and dont recover\n"
-#ifdef CONFIG_PPC64
+#if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_BOOK3E)
 "  u   dump segment table or SLB\n"
-#endif
-#ifdef CONFIG_PPC_STD_MMU_32
+#elif defined(CONFIG_PPC_STD_MMU_32)
 "  u   dump segment registers\n"
-#endif
-#ifdef CONFIG_44x
+#elif defined(CONFIG_44x) || defined(CONFIG_PPC_BOOK3E)
 "  u   dump TLB\n"
 #endif
 "  ?   help\n"
@@ -885,13 +883,11 @@ cmds(struct pt_regs *excp)
                case 'u':
                        dump_segments();
                        break;
-#endif
-#ifdef CONFIG_4xx
+#elif defined(CONFIG_4xx)
                case 'u':
                        dump_tlb_44x();
                        break;
-#endif
-#ifdef CONFIG_PPC_BOOK3E
+#elif defined(CONFIG_PPC_BOOK3E)
                case 'u':
                        dump_tlb_book3e();
                        break;