Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7947cf0d authored by Hendrik Brueckner's avatar Hendrik Brueckner Committed by Paul Mackerras
Browse files

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: default avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Acked-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 3d26825e
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -689,11 +689,9 @@ EXPORT_SYMBOL_GPL(hvc_poll);
 */
 */
void hvc_resize(struct hvc_struct *hp, struct winsize ws)
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;
	hp->ws = ws;
	schedule_work(&hp->tty_resize);
	schedule_work(&hp->tty_resize);
}
}
}


/*
/*
 * This kthread is either polling or interrupt driven.  This is determined by
 * This kthread is either polling or interrupt driven.  This is determined by