hvc_console: Always schedule resize work on resize

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, December 28, 2008 - 6:02 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7947cf...
Commit:     7947cf0dd4b6a2bb06c57971502fb81c76a66f2d
Parent:     3d26825ec03f623f20ba860e6e6113ab2d0bb0f1
Author:     Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
AuthorDate: Tue Nov 18 01:28:28 2008 +0000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Wed Dec 3 21:04:15 2008 +1100

    hvc_console: Always schedule resize work on resize
    
    The test to check for a new winsize runs out-of-sync with the
    underlying tty.  After a tty has been released and initialized again,
    the winsize might differ between the tty and the hp struct.  The
    solution is to simply remove the check and always schedule the resize
    work.
    
    Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 drivers/char/hvc_console.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index 5b819b1..74ecb5b 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -689,10 +689,8 @@ EXPORT_SYMBOL_GPL(hvc_poll);
  */
 void hvc_resize(struct hvc_struct *hp, struct winsize ws)
 {
-	if ((hp->ws.ws_row != ws.ws_row) || (hp->ws.ws_col != ws.ws_col)) {
-		hp->ws = ws;
-		schedule_work(&hp->tty_resize);
-	}
+	hp->ws = ws;
+	schedule_work(&hp->tty_resize);
 }
 
 /*
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hvc_console: Always schedule resize work on resize, Linux Kernel Mailing ..., (Sun Dec 28, 6:02 pm)