[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xencons: generalize use of add_preferred_console()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1386927110 -3600 # Node ID 731ff1f10c46453a84345f678a97523619e706ab # Parent 2993033a77ca312a3370f0e77d74b68a9d0df708 xencons: generalize use of add_preferred_console() Changeset 762:a070228ac76e ("add hvc compatibility mode to xencons" added this call just for the HVC case, without giving any reason why HVC would be special in this regard. Use the call for all cases. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 2993033a77ca -r 731ff1f10c46 drivers/xen/console/console.c --- a/drivers/xen/console/console.c Fri Dec 06 12:17:05 2013 +0100 +++ b/drivers/xen/console/console.c Fri Dec 13 10:31:50 2013 +0100 @@ -214,8 +214,6 @@ static int __init xen_console_init(void) strcpy(kcons_info.name, "hvc"); if (xc_num == -1) xc_num = 0; - if (!is_initial_xendomain()) - add_preferred_console(kcons_info.name, xc_num, NULL); break; case XC_SERIAL: @@ -236,6 +234,8 @@ static int __init xen_console_init(void) wbuf = alloc_bootmem(wbuf_size); + if (!is_initial_xendomain()) + add_preferred_console(kcons_info.name, xc_num, NULL); register_console(&kcons_info); out: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |