[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200901131228.41189.borntraeger@de.ibm.com>
Date: Tue, 13 Jan 2009 12:28:41 +0100
From: Christian Borntraeger <borntraeger@...ibm.com>
To: Milton Miller <miltonm@....com>
Cc: Benjiman Herrenschmidt <benh@...nel.crashing.org>,
linuxppc-dev list <linuxppc-dev@...abs.org>,
lkml <linux-kernel@...r.kernel.org>,
Joe Peterson <joe@...rush.com>,
Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: Re: [PATCH 1/4] hvc_console: do not set low_latency
Am Dienstag 13 Januar 2009 schrieb Christian Borntraeger:
> drivers/char/hvc_console.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> Index: linux-2.6/drivers/char/hvc_console.c
> ===================================================================
> --- linux-2.6.orig/drivers/char/hvc_console.c
> +++ linux-2.6/drivers/char/hvc_console.c
> @@ -318,8 +318,6 @@ static int hvc_open(struct tty_struct *t
> } /* else count == 0 */
>
> tty->driver_data = hp;
> - tty->low_latency = 1; /* Makes flushes to ldisc synchronous. */
> -
> hp->tty = tty;
>
> spin_unlock_irqrestore(&hp->lock, flags);
> @@ -327,6 +325,9 @@ static int hvc_open(struct tty_struct *t
> if (hp->ops->notifier_add)
> rc = hp->ops->notifier_add(hp, hp->data);
>
> + if (!hp->irq_requested)
> + tty->low_latency = 1; /* Makes flushes to ldisc synchronous. */
> +
> /*
> * If the notifier fails we return an error. The tty layer
> * will call hvc_close() after a failed open but we don't want to clean
>
>
Just in case:
Signed-off-by: Christian Borntraeger <borntraeger@...ibm.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists