[tip:timers/2038] timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REALTIME

2014-10-29 Thread tip-bot for Heena Sirwani
Commit-ID: dbe7aa622db96b5cd601f59d09c4f00b98b76079 Gitweb: http://git.kernel.org/tip/dbe7aa622db96b5cd601f59d09c4f00b98b76079 Author: Heena Sirwani AuthorDate: Wed, 29 Oct 2014 16:01:50 +0530 Committer: Thomas Gleixner CommitDate: Wed, 29 Oct 2014 15:15:40 +0100 timekeeping: Provide

[tip:timers/2038] timekeeping: Provide fast accessor to the seconds part of CLOCK_MONOTONIC

2014-10-29 Thread tip-bot for Heena Sirwani
Commit-ID: 9e3680b1750b9a62680b0262c9f438de98b77655 Gitweb: http://git.kernel.org/tip/9e3680b1750b9a62680b0262c9f438de98b77655 Author: Heena Sirwani AuthorDate: Wed, 29 Oct 2014 16:01:16 +0530 Committer: Thomas Gleixner CommitDate: Wed, 29 Oct 2014 15:15:40 +0100 timekeeping: Provide

[PATCH v8 1/2] timekeeping: Added a function to return tv_sec portion of ktime_get_ts64()

2014-10-29 Thread Heena Sirwani
timekeeping_get_ns() which is expensive and we do not require such fine resolution for nanoseconds. Signed-off-by: Heena Sirwani --- include/linux/timekeeper_internal.h | 2 ++ include/linux/timekeeping.h | 1 + kernel/time/timekeeping.c | 22 +++--- 3 files changed, 22

[PATCH v8 2/2] timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64()

2014-10-29 Thread Heena Sirwani
read_seqcount_retry loop which is required for 32-bit architectures. This is because 32-bit machines cannot access 64-bit tk->xtime_sec variable atomically, requiring two 32-bit register loads. Signed-off-by: Heena Sirwani --- include/linux/timekeeping.h | 1 + kernel/time/timekeeping.c |

[PATCH v8 0/2] Added ktime_get_seconds() and ktime_get_real_seconds()

2014-10-29 Thread Heena Sirwani
- Added a patch with ktime_get_real_seconds(). Heena Sirwani (2): timekeeping: Added a function to return tv_sec portion of ktime_get_ts64() timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64() include/linux/timekeeper_internal.h | 2 ++ include

[PATCH v7] timekeeping: Added a function to return tv_sec portion of ktime_get_ts64()

2014-10-29 Thread Heena Sirwani
. We keep ticks as 32-bits as the function uses 32-bit arithmetic which would prove less expensive than 64-bit arithmetic and the function is expected to be called atleast once every 32 seconds. Signed-off-by: Heena Sirwani --- Changes in v7: - Reordered assignments in tk_update_ktime_data

[PATCH v6] cpuset: Replace all instances of time_t with time64_t

2014-10-27 Thread Heena Sirwani
. We keep ticks as 32-bits as the function uses 32-bit arithmetic which would prove less expensive than 64-bit arithmetic and the function is expected to be called atleast once every 32 seconds. Signed-off-by: Heena Sirwani Reviewed-by: Arnd Bergmann --- Changes in v6: - Changed the

[PATCH v6] cpuset: Replace all instances of time_t with time64_t

2014-10-27 Thread Heena Sirwani
. We keep ticks as 32-bits as the function uses 32-bit arithmetic which would prove less expensive than 64-bit arithmetic and the function is expected to be called atleast once every 32 seconds. Signed-off-by: Heena Sirwani --- Changes in v6: - Changed the function ktime_get_ts64() to

[PATCH v2] timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64()

2014-10-26 Thread Heena Sirwani
read_seqcount_retry loop which is required for 32-bit architectures. This is because 32-bit machines cannot access 64-bit tk->xtime_sec variable atomically, requiring two 32-bit register loads. Signed-off-by: Heena Sirwani Reviewed-by: Arnd Bergmann --- Changes in v2: - Removed the lo

[PATCH v5] timekeeping: Added a function to return tv_sec portion of ktime_get_ts64()

2014-10-25 Thread Heena Sirwani
returns the exact nanoseconds value with tk_xtime() that returns nanosecond value of the last timer tick since we do not require such fine resolution for nanoseconds portion but want the seconds to be returned as fast as possible. Signed-off-by: Heena Sirwani --- Changes in v5: - Made the