]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Always add preferred consoles in platforms/pseries/lpar.c
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 16 Apr 2008 03:51:49 +0000 (13:51 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 Apr 2008 00:00:59 +0000 (10:00 +1000)
commit33a66c9c6762152e3d10c798fdcbc6165a8ed2d8
treed2e8dfc12d054c9cdc50b8fa7cf64707814f7e0f
parent2e680f25e61ba9c8817ff6835298a32f57c8f99c
[POWERPC] Always add preferred consoles in platforms/pseries/lpar.c

There is logic in platforms/peries/lpars.c which checks if the user has
specified a console on the command line, and refrains from adding a
preferred console entry for the hvc/hvsi console if they have.

This trips up if you use "netconsole=foo" on the command line, and has
the result that you get _only_ the netconsole, because the hvc device is
never added as a preferred console. Worse still if you get the netconsole
configuration wrong somehow, you end up with no console at all.

As it turns out we don't need to worry about checking the command line.
If the user has specified "console=foo", then foo will be set as the
preferred console when the command line is parsed in start_kernel(), much
later than the pseries code, and so the latter setting will take effect.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/lpar.c