projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32c8c7
)
time: delete CURRENT_TIME_SEC and CURRENT_TIME
author
Deepa Dinamani
<
[email protected]
>
Mon, 8 May 2017 22:59:37 +0000
(15:59 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 9 May 2017 00:15:15 +0000
(17:15 -0700)
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/
[email protected]
Signed-off-by: Deepa Dinamani <
[email protected]
>
Reviewed-by: Arnd Bergmann <
[email protected]
>
Acked-by: John Stultz <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/time.h
patch
|
blob
|
history
diff --git
a/include/linux/time.h
b/include/linux/time.h
index 23f0f5ce30909d7349a354086980e2ca9988744c..c0543f5f25de471594330d84d605c6f20ef4c565 100644
(file)
--- a/
include/linux/time.h
+++ b/
include/linux/time.h
@@
-151,9
+151,6
@@
static inline bool timespec_inject_offset_valid(const struct timespec *ts)
return true;
}
-#define CURRENT_TIME (current_kernel_time())
-#define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 })
-
/* Some architectures do not supply their own clocksource.
* This is mainly the case in architectures that get their
* inter-tick times by reading the counter on their interval