]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2089b2d73c3f817835c9823f35cef0555c7f32cb
treeeaf51ea4136a36e007109db421737cc68ca2f33a
parentce2eea3f7fa8952ee0331cb1ac09d15bca4a8731
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