projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v3.10/topic/arm64-hmp' into linux-linaro-lsk-v3.10
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
tty
/
tty_io.c
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index d35afccdb6c9ea18d0f6fef5f7bb50ee68f3cf84..2967b6eb4c702ec9941927adf315da946237312c 100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-992,8
+992,8
@@
EXPORT_SYMBOL(start_tty);
/* We limit tty time update visibility to every 8 seconds or so. */
static void tty_update_time(struct timespec *time)
{
/* 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()
& ~7
;
- if (
(long)(sec - time->tv_sec) > 0
)
+ unsigned long sec = get_seconds();
+ if (
abs(sec - time->tv_sec) & ~7
)
time->tv_sec = sec;
}
time->tv_sec = sec;
}