[PATCH v5 0/2] cpuset: Replace instances of time_t with time64_t to solve y2038 problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux