Skip to content

Commit

Permalink
[PATCH] ppc64: iSeries early printk breakage
Browse files Browse the repository at this point in the history
The earlier commit 8d92739
(Consolidate early console and PPCDBG code) broke iSeries because
it caused unregister_console(&udbg_console) to be called
unconditionally.  iSeries never registers the udbg_console.

This just reverts part of the change.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Sep 9, 2005
1 parent 34b5233 commit 38c0ff0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/ppc64/kernel/udbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,20 @@ static struct console udbg_console = {
.index = -1,
};

static int early_console_initialized;

void __init disable_early_printk(void)
{
if (!early_console_initialized)
return;
unregister_console(&udbg_console);
early_console_initialized = 0;
}

/* called by setup_system */
void register_early_udbg_console(void)
{
early_console_initialized = 1;
register_console(&udbg_console);
}

Expand Down

0 comments on commit 38c0ff0

Please sign in to comment.