X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Ftty%2Ftty_io.c;h=6464029e4860968945840c252ad632b556f9f947;hb=942d33da999b86821c9aee9615fcb81207ee04c7;hp=97ebc8c5864e7f092e443810a53d5e42b4238501;hpb=39b2f8656e2af4d5d490ce6e33e4ba229cda3e33;p=~andy%2Flinux diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 97ebc8c5864..6464029e486 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -988,10 +988,10 @@ void start_tty(struct tty_struct *tty) EXPORT_SYMBOL(start_tty); +/* We limit tty time update visibility to every 8 seconds or so. */ static void tty_update_time(struct timespec *time) { - unsigned long sec = get_seconds(); - sec -= sec % 60; + unsigned long sec = get_seconds() & ~7; if ((long)(sec - time->tv_sec) > 0) time->tv_sec = sec; }