From: Hendrik Brueckner Date: Tue, 14 Oct 2008 05:02:09 +0000 (+0000) Subject: hvc_console: Add support for tty window resizing X-Git-Tag: v2.6.28-rc1~58^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=febde3711992a64ea83a47a719f68a90c4b0927a;p=pandora-kernel.git hvc_console: Add support for tty window resizing The patch provides the hvc_resize() function to update the terminal window dimensions (struct winsize) for a specified hvc console. The function stores the new window size and schedules a function that finally updates the tty winsize and signals the change to user space (SIGWINCH). Because the winsize update must acquire a mutex and might sleep, the function is scheduled instead of being called from hvc_poll() or khvcd. This patch uses the tty_do_resize() routine from the tty layer. A pending resize work is canceled in hvc_close() and hvc_hangup(). Signed-off-by: Hendrik Brueckner Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed