aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 97ebc8c5864e..6464029e4860 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -988,10 +988,10 @@ void start_tty(struct tty_struct *tty)
988 988
989EXPORT_SYMBOL(start_tty); 989EXPORT_SYMBOL(start_tty);
990 990
991/* We limit tty time update visibility to every 8 seconds or so. */
991static void tty_update_time(struct timespec *time) 992static void tty_update_time(struct timespec *time)
992{ 993{
993 unsigned long sec = get_seconds(); 994 unsigned long sec = get_seconds() & ~7;
994 sec -= sec % 60;
995 if ((long)(sec - time->tv_sec) > 0) 995 if ((long)(sec - time->tv_sec) > 0)
996 time->tv_sec = sec; 996 time->tv_sec = sec;
997} 997}