Skip to contentSkip to conversation

time: delete CURRENT_TIME_SEC and CURRENT_TIME

PATCH New [email protected] 1 participant 1 message May 8, 2017 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 100/114 time: delete CURRENT_TIME_SEC and CURRENT_TIME

From: Deepa Dinamani <[email protected]>
Subject: time: delete CURRENT_TIME_SEC and CURRENT_TIME

All uses of CURRENT_TIME_SEC and CURRENT_TIME macros have been replaced by other time functions. These macros are also not y2038 safe. And, all their use cases can be fulfilled by y2038 safe ktime_get_* variants.

---

 include/linux/time.h |    3 ---
 1 file changed, 3 deletions(-)
include/linux/time.h renamed from include/linux/time.h~time-delete-current_time_sec-and-current_time +0 -2
diff -puN include/linux/time.h~time-delete-current_time_sec-and-current_time include/linux/time.h
@@ -151,9 +151,6 @@ static inline bool timespec_inject_offse
 	return true;
 }
 
-#define CURRENT_TIME		(current_kernel_time())
-#define CURRENT_TIME_SEC	((struct timespec) { get_seconds(), 0 })