mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
timekeeping: Move the vDSO update declarations into a private header
All architectures are now fully using the generic vDSO infrastructure. They don't need these declarations anymore to implement the functions in architecture-specific code. Move them to the private header. 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-2-e85ad96409a9@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
6e43591139
commit
79bd39c58f
@@ -190,23 +190,4 @@ struct timekeeper {
|
||||
s32 tai_offset;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
||||
|
||||
extern void update_vsyscall(struct timekeeper *tk);
|
||||
extern void update_vsyscall_tz(void);
|
||||
extern void vdso_time_update_aux(struct timekeeper *tk);
|
||||
|
||||
#else
|
||||
|
||||
static inline void update_vsyscall(struct timekeeper *tk)
|
||||
{
|
||||
}
|
||||
static inline void update_vsyscall_tz(void)
|
||||
{
|
||||
}
|
||||
static inline void vdso_time_update_aux(struct timekeeper *tk)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_TIMEKEEPER_INTERNAL_H */
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <generated/timeconst.h>
|
||||
#include "timekeeping.h"
|
||||
#include "timekeeping_internal.h"
|
||||
|
||||
/*
|
||||
* The timezone where the local system is located. Used as a default by some
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/time.h>
|
||||
|
||||
struct timekeeper;
|
||||
|
||||
/*
|
||||
* timekeeping debug functions
|
||||
*/
|
||||
@@ -48,4 +50,23 @@ void timekeeper_unlock_irqrestore(unsigned long flags);
|
||||
/* NTP specific interface to access the current seconds value */
|
||||
long ktime_get_ntp_seconds(unsigned int id);
|
||||
|
||||
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
||||
|
||||
extern void update_vsyscall(struct timekeeper *tk);
|
||||
extern void update_vsyscall_tz(void);
|
||||
extern void vdso_time_update_aux(struct timekeeper *tk);
|
||||
|
||||
#else
|
||||
|
||||
static inline void update_vsyscall(struct timekeeper *tk)
|
||||
{
|
||||
}
|
||||
static inline void update_vsyscall_tz(void)
|
||||
{
|
||||
}
|
||||
static inline void vdso_time_update_aux(struct timekeeper *tk)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _TIMEKEEPING_INTERNAL_H */
|
||||
|
||||
Reference in New Issue
Block a user