Re: [PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-21 Thread Tina Ruchandani
>> which only does one 64-bit division, and it's one that we can probably >> optimize out in the future (we can check in ktime_ms_delta whether the >> difference is more than 2^32 nanoseconds as the fast path). It looks like ktime_divns already has that optimization for 32-bit divisor, so your

Re: [PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-21 Thread Tina Ruchandani
>> which only does one 64-bit division, and it's one that we can probably >> optimize out in the future (we can check in ktime_ms_delta whether the >> difference is more than 2^32 nanoseconds as the fast path). It looks like ktime_divns already has that optimization for 32-bit divisor, so your

Re: [PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-21 Thread Tina Ruchandani
> > How about > > remaining_jiffies = msecs_to_jiffies(ktime_ms_delta(*timeout, now)); > > which only does one 64-bit division, and it's one that we can probably > optimize out in the future (we can check in ktime_ms_delta whether the > difference is more than 2^32 nanoseconds as the fast

Re: [PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-21 Thread Tina Ruchandani
> > How about > > remaining_jiffies = msecs_to_jiffies(ktime_ms_delta(*timeout, now)); > > which only does one 64-bit division, and it's one that we can probably > optimize out in the future (we can check in ktime_ms_delta whether the > difference is more than 2^32 nanoseconds as the fast

[PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-13 Thread Tina Ruchandani
. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> -- Changes in v2: Fix checkpatch warning --- drivers/gpu/drm/msm/msm_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c03b967..59c1948

[PATCH v2] drm/msm: Use 64-bit timekeeping

2016-04-13 Thread Tina Ruchandani
. Signed-off-by: Tina Ruchandani -- Changes in v2: Fix checkpatch warning --- drivers/gpu/drm/msm/msm_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c03b967..59c1948 100644 --- a/drivers/gpu/drm/msm

[PATCH] drm/msm: Use 64-bit timekeeping

2016-04-13 Thread Tina Ruchandani
. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c03b967..b095085 100644 --- a/drivers/gpu/drm/msm/msm_drv.c

[PATCH] drm/msm: Use 64-bit timekeeping

2016-04-13 Thread Tina Ruchandani
. Signed-off-by: Tina Ruchandani --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c03b967..b095085 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c

[PATCH] drm/sti: Use 64-bit timestamps

2016-04-13 Thread Tina Ruchandani
'struct timespec' uses a 32-bit field for seconds, which will overflow in year 2038 and beyond. This patch is part of a larger attempt to remove instances of timeval, timespec and time_t, all of which suffer from the y2038 issue, from the kernel. Signed-off-by: Tina Ruchandani <ruchandan

[PATCH] drm/sti: Use 64-bit timestamps

2016-04-13 Thread Tina Ruchandani
'struct timespec' uses a 32-bit field for seconds, which will overflow in year 2038 and beyond. This patch is part of a larger attempt to remove instances of timeval, timespec and time_t, all of which suffer from the y2038 issue, from the kernel. Signed-off-by: Tina Ruchandani --- drivers/gpu

Re: [PATCH, RESEND 3] qla2xxx: Remove use of 'struct timeval'

2016-04-13 Thread Tina Ruchandani
> > Applied to 4.6/scsi-queue. Hi Martin, I am not seeing this patch in v4.6-rc3 in Linus's tree. Should I resend this? Thanks, Tina

Re: [PATCH, RESEND 3] qla2xxx: Remove use of 'struct timeval'

2016-04-13 Thread Tina Ruchandani
> > Applied to 4.6/scsi-queue. Hi Martin, I am not seeing this patch in v4.6-rc3 in Linus's tree. Should I resend this? Thanks, Tina

[PATCH] mpt3sas: Remove usage of 'struct timeval'

2016-04-13 Thread Tina Ruchandani
since Unix epoch). Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- drivers/scsi/mpt3sas/mpt3sas_base.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/

[PATCH] mpt3sas: Remove usage of 'struct timeval'

2016-04-13 Thread Tina Ruchandani
since Unix epoch). Signed-off-by: Tina Ruchandani Reviewed-by: Arnd Bergmann --- drivers/scsi/mpt3sas/mpt3sas_base.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 8c44b9c..326c152 100644

[PATCH v3] prism54: isl_38xx: Replace 'struct timeval'

2016-04-13 Thread Tina Ruchandani
the seconds value being truncated. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Bergmann <a...@arndb.de> -- Changes in v3: Fix commit messag

[PATCH v3] prism54: isl_38xx: Replace 'struct timeval'

2016-04-13 Thread Tina Ruchandani
the seconds value being truncated. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v3: Fix commit message Changes in v2: Changed printf specifier as sugg

[PATCH v2] prism54: isl_38xx: Replace 'struct timeval'

2016-03-22 Thread Tina Ruchandani
specifier from %li. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Bergmann <a...@arndb.de> -- Changes in v2: - Changed printf specifier as s

[PATCH v2] prism54: isl_38xx: Replace 'struct timeval'

2016-03-22 Thread Tina Ruchandani
specifier from %li. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v2: - Changed printf specifier as suggested by Arnd Bergmann to avoid truncation. --- drivers

[PATCH] prism54: isl_38xx: Replace 'struct timeval'

2016-03-22 Thread Tina Ruchandani
a different specifier from %li. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- drivers/net/wireless/intersil/prism54/isl_38xx.c | 29 +++- 1 file cha

[PATCH] prism54: isl_38xx: Replace 'struct timeval'

2016-03-22 Thread Tina Ruchandani
a different specifier from %li. The patch was build-tested / debugged by removing the "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Signed-off-by: Tina Ruchandani --- drivers/net/wireless/intersil/prism54/isl_38xx.c | 29 +++- 1 file changed, 18 insertions(+), 11 deletions(-

[PATCH] firewire: nosy: Replace timeval with timespec64

2016-03-21 Thread Tina Ruchandani
. However, this patch does the replacement as part of a larger effort to remove all instances of 'struct timeval' from the kernel (that would help identify cases where the code is actually broken). Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- drivers/firewire/nosy.c | 8 +

[PATCH] firewire: nosy: Replace timeval with timespec64

2016-03-21 Thread Tina Ruchandani
. However, this patch does the replacement as part of a larger effort to remove all instances of 'struct timeval' from the kernel (that would help identify cases where the code is actually broken). Signed-off-by: Tina Ruchandani --- drivers/firewire/nosy.c | 8 +--- 1 file changed, 5 insertions

[PATCH v7] isdn: Use ktime_t instead of 'struct timeval'

2016-03-19 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Bergmnann <a...@arndb.de> Suggested-by: David Miller <da...@davemloft.net>

[PATCH v7] isdn: Use ktime_t instead of 'struct timeval'

2016-03-19 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmnann Suggested-by: David Miller --- Changes in v7: - Upodate variable names to remove mentions of 'tv' for timeval

Re: [PATCH v6] isdn: Use ktime_t instead of 'struct timeval'

2015-11-01 Thread Tina Ruchandani
> > Therefore please adjust the variable name appropriately, thanks. David, Thanks for the feedback, I will send out a v3. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v6] isdn: Use ktime_t instead of 'struct timeval'

2015-11-01 Thread Tina Ruchandani
> > Therefore please adjust the variable name appropriately, thanks. David, Thanks for the feedback, I will send out a v3. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Tina Ruchandani
> > Thanks for the conversion. Can you please check if other (scsi) drivers > have the same y2038 issues? A quick "git grep do_gettimeofday > drivers/scsi/ | wc -l" reveals 30 occurrences (of cause not all are > problematic). > Hi Johannes, Yes, there are quite a few occurrences of timeval

[PATCH] AFS: Correctly use 64-bit time for UUID

2015-10-30 Thread Tina Ruchandani
of 'struct timespec' and other data-structures suffering from y2038 problem from the kernel. Suggested-by: Arnd Bergmann Signed-off-by: Tina Ruchandani --- Changes in v2: - Use 64-bit division API, fix 32-bit build --- fs/afs/main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Tina Ruchandani
-by: Tina Ruchandani -- Changes in v3: - Remove stex_gettime altogether, directly assign the timestamp. Changes in v2: - Change subject line to indicate that the patch is restricted to stex driver. --- --- drivers/scsi/stex.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff

[PATCH] [DCCP]: Use 64-bit timekeeping

2015-10-30 Thread Tina Ruchandani
only uses the timestamps to compute a small elapsed interval. This patch is part of a larger attempt to remove instances of 32-bit timekeeping structures (timespec, timeval, time_t) from the kernel so it is easier to identify where the real 2038 issues are. Signed-off-by: Tina Ruchandani --- net

Re: [RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Tina Ruchandani
> > Thanks for the conversion. Can you please check if other (scsi) drivers > have the same y2038 issues? A quick "git grep do_gettimeofday > drivers/scsi/ | wc -l" reveals 30 occurrences (of cause not all are > problematic). > Hi Johannes, Yes, there are quite a few occurrences of timeval

[PATCH] AFS: Correctly use 64-bit time for UUID

2015-10-30 Thread Tina Ruchandani
of 'struct timespec' and other data-structures suffering from y2038 problem from the kernel. Suggested-by: Arnd Bergmann <a...@arndb.de> Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- Changes in v2: - Use 64-bit division API, fix 32-bit build --- fs/afs/main.c | 6 ++ 1 fil

[PATCH] [DCCP]: Use 64-bit timekeeping

2015-10-30 Thread Tina Ruchandani
only uses the timestamps to compute a small elapsed interval. This patch is part of a larger attempt to remove instances of 32-bit timekeeping structures (timespec, timeval, time_t) from the kernel so it is easier to identify where the real 2038 issues are. Signed-off-by: Tina Ruchandani

[RESEND PATCH v3] scsi: stex: Remove use of struct timeval

2015-10-30 Thread Tina Ruchandani
.de> Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> -- Changes in v3: - Remove stex_gettime altogether, directly assign the timestamp. Changes in v2: - Change subject line to indicate that the patch is restricted to stex driver. --- --- drivers/scsi/stex.c | 13 +++-- 1

[PATCH v2] USB: usbmon: Remove timeval usage for timestamp

2015-10-29 Thread Tina Ruchandani
seconds, so the correctness of the code is not affected. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann --- Changes in v2: - Switch

[RESEND PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-10-29 Thread Tina Ruchandani
. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani --- drivers/usb/mon/mon_bin.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH] NET: ATM: MPOA: Remove 32-bit timekeeping

2015-10-29 Thread Tina Ruchandani
is an overkill. This patch replaces the use of struct timeval with time64_t to store a 64-bit seconds field. Signed-off-by: Tina Ruchandani --- net/atm/common.c | 2 +- net/atm/mpc.c | 9 + net/atm/mpoa_caches.c | 49 - net/atm

[PATCH v6] isdn: Use ktime_t instead of 'struct timeval'

2015-10-29 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmnann --- Changes in v6: - Fix compilation errors caused by bad code editing Changes in v5: - Apply cleanly to net-next

[PATCH v5] isdn: Use ktime_t instead of 'struct timeval'

2015-10-29 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmnann --- drivers/isdn/mISDN/clock.c | 51 +- include/linux/mISDNif.h| 2

[PATCH] [media] rc-core: Remove 'struct timeval' usage

2015-10-29 Thread Tina Ruchandani
ktime_get_real() preserving the use of wall-clock time in the original code. Signed-off-by: Tina Ruchandani --- drivers/media/rc/streamzap.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c index

[PATCH v5] isdn: Use ktime_t instead of 'struct timeval'

2015-10-29 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Bergmnann <a...@arndb.de> --- drivers/isdn/mISDN/

[PATCH] [media] rc-core: Remove 'struct timeval' usage

2015-10-29 Thread Tina Ruchandani
ktime_get_real() preserving the use of wall-clock time in the original code. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- drivers/media/rc/streamzap.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/media/rc/streamzap.c b/d

[PATCH v6] isdn: Use ktime_t instead of 'struct timeval'

2015-10-29 Thread Tina Ruchandani
replaces do_gettimeofday() (wall-clock time) with ktime_get() (monotonic time) since we only care about elapsed time here. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Bergmnann <a...@arndb.de> --- Changes in v6: - Fix compilation errors caused by bad

[PATCH] NET: ATM: MPOA: Remove 32-bit timekeeping

2015-10-29 Thread Tina Ruchandani
is an overkill. This patch replaces the use of struct timeval with time64_t to store a 64-bit seconds field. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- net/atm/common.c | 2 +- net/atm/mpc.c | 9 + net/atm/mpoa_caches.

[RESEND PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-10-29 Thread Tina Ruchandani
. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> --- drivers/usb/mon/mon_bin.c | 17 + 1 file changed, 9 insertions

[PATCH v2] USB: usbmon: Remove timeval usage for timestamp

2015-10-29 Thread Tina Ruchandani
seconds, so the correctness of the code is not affected. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani <ruchandani.t...@gmail.com> Suggested-by: Arnd Be

Re: [PATCH] fbdev: radeon: Remove 'struct timeval' usage

2015-06-05 Thread Tina Ruchandani
>>> + hz = 100/delta; > > This needs to be on of the do_div family. > > Dave. Hi Dave, I build-tested the patch for both 32-bit and 64-bit x86. If my understanding is correct, since the divisor is 64-bit here, the compiler will do "if (delta > 100) hz = 0; else hz =

Re: [PATCH] fbdev: radeon: Remove 'struct timeval' usage

2015-06-05 Thread Tina Ruchandani
+ hz = 100/delta; This needs to be on of the do_div family. Dave. Hi Dave, I build-tested the patch for both 32-bit and 64-bit x86. If my understanding is correct, since the divisor is 64-bit here, the compiler will do if (delta 100) hz = 0; else hz = 100/(s32)delta

[PATCH v3] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
variables (timeval, timespec, time_t) which are not year 2038 safe, from the kernel. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v3: - Clean up commit message. - Use ktime_us_delta which is more concise than the combination of ktime_sub and ktime_to_us Changes in v2

Re: [PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
> -- > Changes in v2: > - Use the more concise ktime_us_delta Oops, please ignore this patch and please consider the v3 sent out immediately after instead. Tina -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

[PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
diffing the tv[i] and tv[i-1] values. The original printk statement seems to get the order wrong. This patch preserves that order. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v2: - Use the more concise ktime_us_delta - Preserve the waketime argument

[PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
diffing the tv[i] and tv[i-1] values. The original printk statement seems to get the order wrong. This patch preserves that order. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com Suggested-by: Arnd Bergmann a...@arndb.de -- Changes in v2: - Use the more concise ktime_us_delta - Preserve

Re: [PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
-- Changes in v2: - Use the more concise ktime_us_delta Oops, please ignore this patch and please consider the v3 sent out immediately after instead. Tina -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH v3] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-31 Thread Tina Ruchandani
variables (timeval, timespec, time_t) which are not year 2038 safe, from the kernel. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com Suggested-by: Arnd Bergmann ar...@arndb.de -- Changes in v3: - Clean up commit message. - Use ktime_us_delta which is more concise than the combination

[PATCH] fbdev: radeon: Remove 'struct timeval' usage

2015-05-24 Thread Tina Ruchandani
effort to remove all instances of 'struct timeval', 'struct timespec', time_t and other 32-bit timekeeping variables from the kernel. The patch also replaces the use of real time (do_gettimeofday) with monotonic time (ktime_get). Signed-off-by: Tina Ruchandani --- drivers/video/fbdev/aty

[PATCH] fbdev: radeon: Remove 'struct timeval' usage

2015-05-24 Thread Tina Ruchandani
effort to remove all instances of 'struct timeval', 'struct timespec', time_t and other 32-bit timekeeping variables from the kernel. The patch also replaces the use of real time (do_gettimeofday) with monotonic time (ktime_get). Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- drivers

[PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-19 Thread Tina Ruchandani
diffing the tv[i] and tv[i-1] values. The original printk statement seems to get the order wrong. This patch preserves that order. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v2: - Use the more concise ktime_us_delta - Preserve the waketime argument

[PATCH v2] [media] dvb-frontend: Replace timeval with ktime_t

2015-05-19 Thread Tina Ruchandani
diffing the tv[i] and tv[i-1] values. The original printk statement seems to get the order wrong. This patch preserves that order. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com Suggested-by: Arnd Bergmann a...@arndb.de -- Changes in v2: - Use the more concise ktime_us_delta - Preserve

[PATCH] aoe: Use 64-bit timestamp in frame

2015-05-10 Thread Tina Ruchandani
to system time. Signed-off-by: Tina Ruchandani --- drivers/block/aoe/aoe.h| 3 +-- drivers/block/aoe/aoecmd.c | 36 +++- 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index 9220f8e..4582b3c

[PATCH] aoe: Use 64-bit timestamp in frame

2015-05-10 Thread Tina Ruchandani
to system time. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- drivers/block/aoe/aoe.h| 3 +-- drivers/block/aoe/aoecmd.c | 36 +++- 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h

[PATCH v3] scsi: stex: Remove use of struct timeval

2015-05-05 Thread Tina Ruchandani
-by: Tina Ruchandani -- Changes in v3: - Remove stex_gettime altogether, directly assign the timestamp. Changes in v2: - Change subject line to indicate that the patch is restricted to stex driver. --- --- drivers/scsi/stex.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff

Re: [PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-05-05 Thread Tina Ruchandani
> but the timestamp will also overflow. So what is the point? > The 32-bit timestamp obtained using do_gettimeofday() will overflow in year 2038. However, with 64-bit timestamps, we get practically infinite time. mon_bin_hdr already has support for a 64-bit seconds timestamp. This patch changes

[PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-05-05 Thread Tina Ruchandani
safe. Signed-off-by: Tina Ruchandani --- drivers/usb/mon/mon_bin.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index 9a62e89..bfc2ebd 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c

[PATCH] USB: usbmon: Remove timeval usage for timestamp

2015-05-05 Thread Tina Ruchandani
seconds, so the correctness of the code is not affected. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani --- drivers/usb/mon/mon_text.c | 10 +- 1 file changed, 5

Re: [PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-05-05 Thread Tina Ruchandani
but the timestamp will also overflow. So what is the point? The 32-bit timestamp obtained using do_gettimeofday() will overflow in year 2038. However, with 64-bit timestamps, we get practically infinite time. mon_bin_hdr already has support for a 64-bit seconds timestamp. This patch changes how

[PATCH] USB: usbmon: Remove timeval usage for timestamp

2015-05-05 Thread Tina Ruchandani
seconds, so the correctness of the code is not affected. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- drivers/usb/mon/mon_text.c | 10

[PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr

2015-05-05 Thread Tina Ruchandani
safe. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- drivers/usb/mon/mon_bin.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index 9a62e89..bfc2ebd 100644 --- a/drivers/usb/mon/mon_bin.c +++ b

[PATCH v3] scsi: stex: Remove use of struct timeval

2015-05-05 Thread Tina Ruchandani
Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com -- Changes in v3: - Remove stex_gettime altogether, directly assign the timestamp. Changes in v2: - Change subject line to indicate that the patch is restricted to stex driver. --- --- drivers/scsi/stex.c | 13 +++-- 1 file changed, 3

[PATCH 2/2] afs: Prevent callback expiry timer overflow

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs_vnode record to use ktime_get_real_seconds() instead, for the fields cb_expires and cb_expires_at. Signed-off-by: Tina Ruchandani --- fs/afs/fsclient.c | 2

[PATCH 1/2] afs: Migrate vlocation fields to 64-bit

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs's vlocation record to use ktime_get_real_seconds() instead, for the fields time_of_death and update_at. Signed-off-by: Tina Ruchandani --- fs/afs/callback.c

[PATCH 0/2] afs: Migrate to 64-bit timekeeping

2015-01-28 Thread Tina Ruchandani
with ktime_get_real_seconds. Fields that propagate to the inode (mtime_client, mtime_server, creation) remain untouched, as the inode timestamps are only 32bit. Tina Ruchandani (2): afs: Migrate vlocation fields to 64-bit afs: Prevent callback expiry timer overflow fs/afs/callback.c | 7 --- fs/afs

[PATCH v3] ocfs2: Use 64bit variables to track heartbeat time

2015-01-28 Thread Tina Ruchandani
value ("%lld") instead of seconds and microseconds. This simplifies the code since converting ktime_t to that format would need expensive computation. However, the debug log string is less readable than the previous format. Suggested by: Arnd Bergmann Signed-off-by: Tina

[PATCH] AFS: Correctly use 64-bit time for UUID

2015-01-28 Thread Tina Ruchandani
of 'struct timespec' and other data-structures suffering from y2038 problem from the kernel. Suggested-by: Arnd Bergmann Signed-off-by: Tina Ruchandani --- fs/afs/main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/afs/main.c b/fs/afs/main.c index 35de0c0..7a9c2e6

[PATCH v4] trace: Use 64-bit timekeeping

2015-01-28 Thread Tina Ruchandani
Bergmann Suggested-by: Steven Rostedt Signed-off-by: Tina Ruchandani --- Changes in v4: - Fix typo in commit message. - Avoid typecast to 'long long' by defining RUN_TIME as '10ULL' instead of '10'. Changes in v3: - Use a more efficient way to compute condition

[PATCH v4] trace: Use 64-bit timekeeping

2015-01-28 Thread Tina Ruchandani
Bergmann a...@arndb.de Suggested-by: Steven Rostedt rost...@goodmis.org Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- Changes in v4: - Fix typo in commit message. - Avoid typecast to 'long long' by defining RUN_TIME as '10ULL' instead of '10'. Changes in v3

[PATCH 1/2] afs: Migrate vlocation fields to 64-bit

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs's vlocation record to use ktime_get_real_seconds() instead, for the fields time_of_death and update_at. Signed-off-by: Tina Ruchandani ruchandani.t

[PATCH] AFS: Correctly use 64-bit time for UUID

2015-01-28 Thread Tina Ruchandani
of 'struct timespec' and other data-structures suffering from y2038 problem from the kernel. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- fs/afs/main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/afs/main.c b/fs

[PATCH v3] ocfs2: Use 64bit variables to track heartbeat time

2015-01-28 Thread Tina Ruchandani
value (%lld) instead of seconds and microseconds. This simplifies the code since converting ktime_t to that format would need expensive computation. However, the debug log string is less readable than the previous format. Suggested by: Arnd Bergmann a...@arndb.de Signed-off-by: Tina

[PATCH 2/2] afs: Prevent callback expiry timer overflow

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs_vnode record to use ktime_get_real_seconds() instead, for the fields cb_expires and cb_expires_at. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com

[PATCH 0/2] afs: Migrate to 64-bit timekeeping

2015-01-28 Thread Tina Ruchandani
with ktime_get_real_seconds. Fields that propagate to the inode (mtime_client, mtime_server, creation) remain untouched, as the inode timestamps are only 32bit. Tina Ruchandani (2): afs: Migrate vlocation fields to 64-bit afs: Prevent callback expiry timer overflow fs/afs/callback.c | 7 --- fs/afs

[PATCH v2] coredump: Use 64bit time for unix time of coredump

2015-01-27 Thread Tina Ruchandani
struct timeval on 32-bit systems will have its tv_sec value overflow in year 2038 and beyond. Use a 64 bit value to print time of the coredump in seconds. ktime_get_real_seconds is chosen here for efficiency reasons. Suggested by: Arnd Bergmann Signed-off-by: Tina Ruchandani --- Changes in v2

[PATCH v2] PM: Use 64-bit timekeeping

2015-01-27 Thread Tina Ruchandani
. Suggested-by: Arnd Bergmann Signed-off-by: Tina Ruchandani --- Changes in v2: - Use ktime_t to be able to use ktime_ms_delta which is more efficient than timespec64 based methods. --- kernel/power/process.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff

[PATCH v3] trace: Use 64-bit timekeeping

2015-01-27 Thread Tina Ruchandani
Bergmann Signed-off-by: Tina Ruchandani --- Changes in v3: - Use a more efficient way to compute condition for exiting loop. - Fix variable naming - all caps is only for macros. Changes in v2: - Use ktime_t instead of timespec64 for efficiency reasons. --- kernel

[PATCH v2] PM: Use 64-bit timekeeping

2015-01-27 Thread Tina Ruchandani
. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- Changes in v2: - Use ktime_t to be able to use ktime_ms_delta which is more efficient than timespec64 based methods. --- kernel/power/process.c | 12 +--- 1 file changed

[PATCH v2] coredump: Use 64bit time for unix time of coredump

2015-01-27 Thread Tina Ruchandani
struct timeval on 32-bit systems will have its tv_sec value overflow in year 2038 and beyond. Use a 64 bit value to print time of the coredump in seconds. ktime_get_real_seconds is chosen here for efficiency reasons. Suggested by: Arnd Bergmann a...@arndb.de Signed-off-by: Tina Ruchandani

[PATCH v3] trace: Use 64-bit timekeeping

2015-01-27 Thread Tina Ruchandani
Bergmann a...@arndb.de Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com --- Changes in v3: - Use a more efficient way to compute condition for exiting loop. - Fix variable naming - all caps is only for macros. Changes in v2: - Use ktime_t instead of timespec64

[PATCH] PM / Hibernate: Migrate to ktime_t

2014-10-30 Thread Tina Ruchandani
by using seconds and nanoseconds directly - use monotonic time (ktime_get()) since we only care about elapsed time. Signed-off-by: Tina Ruchandani Suggested-by: Arnd Bergmann -- Changes in v4: - Rebased patch off of 3.18-rc1 Changes in v3: - Use monotonic clock (ktime_get

[PATCH] PM / Hibernate: Migrate to ktime_t

2014-10-30 Thread Tina Ruchandani
by using seconds and nanoseconds directly - use monotonic time (ktime_get()) since we only care about elapsed time. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com Suggested-by: Arnd Bergmann a...@arndb.de -- Changes in v4: - Rebased patch off of 3.18-rc1 Changes in v3: - Use

[PATCH] ALSA: es1968: Replace timeval with ktime_t

2014-10-29 Thread Tina Ruchandani
), which simplifies timekeeping, as it does not have to deal with cases where stop_time is less than start_time. Signed-off-by: Tina Ruchandani Reviewed-by: Arnd Bergmann --- sound/pci/es1968.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sound/pci

[PATCH] ALSA: es1968: Replace timeval with ktime_t

2014-10-29 Thread Tina Ruchandani
), which simplifies timekeeping, as it does not have to deal with cases where stop_time is less than start_time. Signed-off-by: Tina Ruchandani ruchandani.t...@gmail.com Reviewed-by: Arnd Bergmann a...@arndb.de --- sound/pci/es1968.c | 15 ++- 1 file changed, 6 insertions(+), 9