Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Link: http://lkml.kernel.org/r/1491613030-11599-12-git-send-email-deepa.kernel@gmail.com
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Deepa Dinamani and committed by
Linus Torvalds
bfe1c566 b32c8c76

-3
-3
include/linux/time.h
··· 151 151 return true; 152 152 } 153 153 154 - #define CURRENT_TIME (current_kernel_time()) 155 - #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) 156 - 157 154 /* Some architectures do not supply their own clocksource. 158 155 * This is mainly the case in architectures that get their 159 156 * inter-tick times by reading the counter on their interval