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
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
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
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 |
- 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
. 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
. 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
. 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
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
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
10 matches
Mail list logo