,
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
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
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>
,
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(-)
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
() 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
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 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/
() 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
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 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/
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
,
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
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
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(+
,
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
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
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
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
() 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 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] 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/
() 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
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/
24 matches
Mail list logo