From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/xencons: generalize use of add_preferred_console() Date: Fri, 13 Dec 2013 09:30:26 +0000 Message-ID: <52AAE1C2020000780010CE39@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartE1D214A2.0__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VrP62-0000KT-5d for xen-devel@lists.xenproject.org; Fri, 13 Dec 2013 09:31:46 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartE1D214A2.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- a/drivers/xen/console/console.c +++ b/drivers/xen/console/console.c @@ -214,8 +214,6 @@ static int __init xen_console_init(void) strcpy(kcons_info.name, "hvc"); if (xc_num =3D=3D -1) xc_num =3D 0; - if (!is_initial_xendomain()) - add_preferred_console(kcons_info.name, xc_num, = NULL); break; =20 case XC_SERIAL: @@ -236,6 +234,8 @@ static int __init xen_console_init(void) =20 wbuf =3D alloc_bootmem(wbuf_size); =20 + if (!is_initial_xendomain()) + add_preferred_console(kcons_info.name, xc_num, NULL); register_console(&kcons_info); =20 out: --=__PartE1D214A2.0__= Content-Type: text/plain; name="xen-console-add-preferred.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-console-add-preferred.patch" xencons: generalize use of add_preferred_console()=0A=0AChangeset = 762:a070228ac76e ("add hvc compatibility mode to xencons"=0Aadded this = call just for the HVC case, without giving any reason why=0AHVC would be = special in this regard. Use the call for all cases.=0A=0ASigned-off-by: = Jan Beulich =0A=0A--- a/drivers/xen/console/console.c=0A= +++ b/drivers/xen/console/console.c=0A@@ -214,8 +214,6 @@ static int = __init xen_console_init(void)=0A strcpy(kcons_info.name, = "hvc");=0A if (xc_num =3D=3D -1)=0A = xc_num =3D 0;=0A- if (!is_initial_xendomain())=0A- = add_preferred_console(kcons_info.name, xc_num, NULL);=0A = break;=0A =0A case XC_SERIAL:=0A@@ -236,6 +234,8 @@ static int __init = xen_console_init(void)=0A =0A wbuf =3D alloc_bootmem(wbuf_size);=0A =0A+ = if (!is_initial_xendomain())=0A+ add_preferred_console(kcons= _info.name, xc_num, NULL);=0A register_console(&kcons_info);=0A =0A = out:=0A --=__PartE1D214A2.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartE1D214A2.0__=--