tty: clean up the tty time logic a bit
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 22:10:27 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 22:10:27 +0000 (23:10 +0100)
commitfbf47635315ab308c9b58a1ea0906e711a9228de
treeeaf51ea4136a36e007109db421737cc68ca2f33a
parent23f5b3fdd04e89b4c67fd9ffa60a193d239acf0f
tty: clean up the tty time logic a bit

We only care if anything other than the lower 3 bits of the tty has
changed, so just check that way, which makes it a bit faster, and more
obvious what is going on.  Also, document this for future developers to
understand why we did this.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org
drivers/tty/tty_io.c