lkml.org 
[lkml]   [2014]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] Changes the time type 'timeval' to 'Ktime'
Date
This patch-set changes the 32-bit time type (timeval) to the 64-bit one
(ktime_t) in imon.c, speedtest.c and torturetest.c, since 32-bit time
types will break in the year 2038.

This patch-set also introduces a reusable time difference function which
returns the difference in millisecond in ktime.h. The last two patches
of this patch-set will use this function, so they are dependent on the
first one.

Chunyan Zhang (3):
ktime.h: Introduce ktime_ms_delta
mtd: test: Replace timeval with ktime_t in speedtest.c and torturetest.c
media: rc: Replace timeval with ktime_t in imon.c

drivers/media/rc/imon.c | 49 +++++++++++----------------------------
drivers/mtd/tests/speedtest.c | 10 ++++----
drivers/mtd/tests/torturetest.c | 10 ++++----
include/linux/ktime.h | 5 ++++
4 files changed, 28 insertions(+), 46 deletions(-)

--
1.7.9.5



\
 
 \ /
  Last update: 2014-12-18 13:21    [W:0.042 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site