mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
timekeeping: Fold vdso_time_update_aux() declarations into the generic ifdeffery
The only caller of vdso_time_update_aux() is already gated behind CONFIG_POSIX_AUX. The additional check in the header files is not necessary. Remove it and then fold the declarations into the existing CONFIG_GENERIC_GETTIMEOFDAY ifdeffery. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260707-timekeeping-header-cleanup-v1-1-e85ad96409a9@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
faef65e45a
commit
6e43591139
@@ -194,6 +194,7 @@ struct timekeeper {
|
||||
|
||||
extern void update_vsyscall(struct timekeeper *tk);
|
||||
extern void update_vsyscall_tz(void);
|
||||
extern void vdso_time_update_aux(struct timekeeper *tk);
|
||||
|
||||
#else
|
||||
|
||||
@@ -203,12 +204,9 @@ static inline void update_vsyscall(struct timekeeper *tk)
|
||||
static inline void update_vsyscall_tz(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_GENERIC_GETTIMEOFDAY) && defined(CONFIG_POSIX_AUX_CLOCKS)
|
||||
extern void vdso_time_update_aux(struct timekeeper *tk);
|
||||
#else
|
||||
static inline void vdso_time_update_aux(struct timekeeper *tk) { }
|
||||
static inline void vdso_time_update_aux(struct timekeeper *tk)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_TIMEKEEPER_INTERNAL_H */
|
||||
|
||||
Reference in New Issue
Block a user