cpuset: Replace instances of time_t with time64_t to solve y2038 problem
Get series with b4
b4 am [email protected]Versions newest first
- v5 Latest2 patches 0 repliesNew
Changes in v5 from the cover letter
- Changed a comment and added a patch that make the code independent of settimeofday().
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cpuset: Replace all instances of time_t with time64_tkernel/ | +11 | 0 replies | |
| 2/2 | cpuset: Replace ktime_get_real_ts64() with ktime_get_ts64()kernel/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/2] cpuset: Replace instances of time_t with time64_t to solve y2038 problem
The following patchset replaces instances of time_t with time64_t to address the y2038 problem. The patchset also makes the code independent of settimeofday().
Changes in v2:
- Changed the function get_seconds() that return a 32-bit integer to ktime_get_real_ts64() that returns a struct of type timespec64 and use the tv_sec part which is 64-bit.
- Change the type of ticks from time_t to u32. 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.
Changes in v3:
- Changed commenting style.
Changes in v4:
- Changed the subject tag.
Changes in v5:
- Changed a comment and added a patch that make the code independent of settimeofday().
Heena Sirwani (2):
cpuset: Replace all instances of time_t with time64_t
cpuset: Replace ktime_get_real_ts64() with ktime_get_ts64()
kernel/cpuset.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1