Skip to content

Commit

Permalink
powerpc/xmon: Fix the 'u' command description
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jimi Xenidis authored and Benjamin Herrenschmidt committed Nov 25, 2011
1 parent c3dcf53 commit 79873e8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 79873e8

Please sign in to comment.