[PATCH] serial:bfin-uart:Remove 'struct timeval'

2015-12-13 Thread DengChao
, replaces struct timeval and do_gettimeofday() with u64 and ktime_get_ns(). Reviewed-by: Arnd Bergmann Signed-off-by: DengChao --- drivers/tty/serial/bfin_uart.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/tty/serial/bfin_uart.c b

[PATCH] fs:affs:Replace time_t with time64_t

2015-12-13 Thread DengChao
The affs code uses "time_t" and "get_seconds()". This will cause problems on 32-bit architectures in 2038 when time_t overflows. This patch replaces them with "time64_t" and "ktime_get_real_seconds()". Reviewed-by: Arnd Bergmann Signed-off-by: DengChao

[PATCH] fs:affs:Replace time_t with time64_t

2015-12-13 Thread DengChao
The affs code uses "time_t" and "get_seconds()". This will cause problems on 32-bit architectures in 2038 when time_t overflows. This patch replaces them with "time64_t" and "ktime_get_real_seconds()". Reviewed-by: Arnd Bergmann <a...@arndb.de>

[PATCH] serial:bfin-uart:Remove 'struct timeval'

2015-12-13 Thread DengChao
, replaces struct timeval and do_gettimeofday() with u64 and ktime_get_ns(). Reviewed-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: DengChao <chao.d...@linaro.org> --- drivers/tty/serial/bfin_uart.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-)

[PATCH] ntp:Fix second_overflow's input parameter type

2015-12-12 Thread DengChao
re-use it in the TIME_INS/DEL cases instead of re-doing divsion which may occur once a second. Signed-off-by: DengChao --- kernel/time/ntp.c | 16 +--- kernel/time/ntp_internal.h | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/kernel/time/ntp.c b/k

[PATCH 1/2] timekeeping: Provide internal function __ktime_get_real_seconds

2015-12-12 Thread DengChao
() in timekeeping to do this. Reviewed-by: John Stultz Signed-off-by: DengChao --- kernel/time/timekeeping.c | 13 + kernel/time/timekeeping_internal.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index d563c19..55acadb

[PATCH 2/2] ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds

2015-12-12 Thread DengChao
een now and last ntp adjustment, it seems impossible that this time will last more than 68 years, so keep its type as "long". Reviewed-by: John Stultz Signed-off-by: DengChao --- kernel/time/ntp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/time/n

[PATCH 0/2] ntp:Change the type of time_reftime and replace get_seconds()

2015-12-12 Thread DengChao
[PATCH 1/2] provides the internal none lock version function. The [PATCH 2/2] does the real fix. DengChao (2): timekeeping: Provide internal function __ktime_get_real_seconds ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds kernel/

[PATCH 1/2] timekeeping: Provide internal function __ktime_get_real_seconds

2015-12-12 Thread DengChao
() in timekeeping to do this. Reviewed-by: John Stultz <john.stu...@linaro.org> Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/timekeeping.c | 13 + kernel/time/timekeeping_internal.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/kernel/time/timekeepin

[PATCH 2/2] ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds

2015-12-12 Thread DengChao
een now and last ntp adjustment, it seems impossible that this time will last more than 68 years, so keep its type as "long". Reviewed-by: John Stultz <john.stu...@linaro.org> Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/ntp.c | 10 ++ 1 file changed, 6

[PATCH 0/2] ntp:Change the type of time_reftime and replace get_seconds()

2015-12-12 Thread DengChao
[PATCH 1/2] provides the internal none lock version function. The [PATCH 2/2] does the real fix. DengChao (2): timekeeping: Provide internal function __ktime_get_real_seconds ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds kernel/

[PATCH] ntp:Fix second_overflow's input parameter type

2015-12-12 Thread DengChao
re-use it in the TIME_INS/DEL cases instead of re-doing divsion which may occur once a second. Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/ntp.c | 16 +--- kernel/time/ntp_internal.h | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --g

[PATCH V1] serial:bfin-uart:Remove 'struct timeval'

2015-11-12 Thread DengChao
, replaces struct timeval and do_gettimeofday() with u64 and ktime_get_ns(). Signed-off-by: DengChao --- drivers/tty/serial/bfin_uart.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/tty/serial/bfin_uart.c b/drivers/tty/serial/bfin_uart.c

[PATCH] fs:affs:Replace time_t with time64_t

2015-11-12 Thread DengChao
on in "secs_to_datestamp()", considering this function is not called so often, the cost should be acceptable. Signed-off-by: DengChao --- fs/affs/affs.h | 2 +- fs/affs/amigaffs.c | 13 +++-- fs/affs/super.c| 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --g

[PATCH] fs:affs:Replace time_t with time64_t

2015-11-12 Thread DengChao
on in "secs_to_datestamp()", considering this function is not called so often, the cost should be acceptable. Signed-off-by: DengChao <chao.d...@linaro.org> --- fs/affs/affs.h | 2 +- fs/affs/amigaffs.c | 13 +++-- fs/affs/super.c| 2 +- 3 files changed, 9 insertions(+

[PATCH V1] serial:bfin-uart:Remove 'struct timeval'

2015-11-12 Thread DengChao
, replaces struct timeval and do_gettimeofday() with u64 and ktime_get_ns(). Signed-off-by: DengChao <chao.d...@linaro.org> --- drivers/tty/serial/bfin_uart.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/tty/serial/bfin_uart.c b/drive

[PATCH] ntp:Fix second_overflow's input parameter type

2015-10-28 Thread DengChao
ing the division (which is now moreexpensive with 64bit types) in the one-per-second TIME_INS/DEL checks. Signed-off-by: DengChao --- kernel/time/ntp.c | 16 +--- kernel/time/ntp_internal.h | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/kernel/time/ntp.c b/k

[PATCH] ntp:Fix second_overflow's input parameter type

2015-10-28 Thread DengChao
ing the division (which is now moreexpensive with 64bit types) in the one-per-second TIME_INS/DEL checks. Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/ntp.c | 16 +--- kernel/time/ntp_internal.h | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) dif

[PATCH 2/2] ntp:Change the type of time_reftime to time64_t and

2015-10-26 Thread DengChao
een now and last ntp adjustment, it seems impossible that this time will last more than 68 years, so keep its type as "long". Signed-off-by: DengChao --- kernel/time/ntp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c

[PATCH 1/2] timekeeping: Provide internal function

2015-10-26 Thread DengChao
() in timekeeping to do this. Signed-off-by: DengChao --- kernel/time/timekeeping.c | 13 + kernel/time/timekeeping_internal.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index bca3667..e958e6a 100644 --- a/kernel/time

[PATCH 0/2] ntp:Change the type of time_reftime and replace get_seconds()

2015-10-26 Thread DengChao
[PATCH 1/2] provides the internal none lock version function. The [PATCH 2/2] does the real fix. DengChao (2): timekeeping: Provide internal function __ktime_get_real_seconds ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds kernel/

[PATCH 0/2] ntp:Change the type of time_reftime and replace get_seconds()

2015-10-26 Thread DengChao
[PATCH 1/2] provides the internal none lock version function. The [PATCH 2/2] does the real fix. DengChao (2): timekeeping: Provide internal function __ktime_get_real_seconds ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds kernel/

[PATCH 1/2] timekeeping: Provide internal function

2015-10-26 Thread DengChao
() in timekeeping to do this. Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/timekeeping.c | 13 + kernel/time/timekeeping_internal.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index bca3667..e958e6a

[PATCH 2/2] ntp:Change the type of time_reftime to time64_t and

2015-10-26 Thread DengChao
een now and last ntp adjustment, it seems impossible that this time will last more than 68 years, so keep its type as "long". Signed-off-by: DengChao <chao.d...@linaro.org> --- kernel/time/ntp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/