From: Gerrit Huizenga Send timestamps to userspace in msecs instead of jiffies. Signed-Off-By: Matt Helsley Signed-Off-By: Gerrit Huizenga Signed-off-by: Andrew Morton --- include/linux/crbce.h | 2 +- kernel/ckrm/rbce/crbce_ext.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff -puN include/linux/crbce.h~ckrm-send-timestamps-to-userspace-in-msecs-instead-of-jiffies include/linux/crbce.h --- devel/include/linux/crbce.h~ckrm-send-timestamps-to-userspace-in-msecs-instead-of-jiffies 2005-07-26 20:48:33.000000000 -0700 +++ devel-akpm/include/linux/crbce.h 2005-07-26 20:48:33.000000000 -0700 @@ -90,7 +90,7 @@ struct crbce_hdr { struct crbce_hdr_ts { int type; pid_t pid; - uint32_t jiffies; + uint32_t timestamp; /* in msecs */ uint64_t cls; }; diff -puN kernel/ckrm/rbce/crbce_ext.c~ckrm-send-timestamps-to-userspace-in-msecs-instead-of-jiffies kernel/ckrm/rbce/crbce_ext.c --- devel/kernel/ckrm/rbce/crbce_ext.c~ckrm-send-timestamps-to-userspace-in-msecs-instead-of-jiffies 2005-07-26 20:48:33.000000000 -0700 +++ devel-akpm/kernel/ckrm/rbce/crbce_ext.c 2005-07-26 20:48:50.000000000 -0700 @@ -25,6 +25,7 @@ #include #include +#include #include #include "rbce_internal.h" @@ -125,7 +126,8 @@ static inline void close_ukcc_channel(vo #define rec_set_hdr(r,t,p) ((r)->hdr.type = (t), (r)->hdr.pid = (p)) #define rec_set_timehdr(r,t,p,c) (rec_set_hdr(r,t,p), \ - (r)->hdr.jiffies = jiffies, (r)->hdr.cls=(unsigned long)(c) ) + (r)->hdr.timestamp = jiffies_to_msecs(jiffies), \ + (r)->hdr.cls=(unsigned long)(c) ) #if CHANNEL_AUTO_CONT _