Commit 9e2ee43a authored by Philippe Gerum's avatar Philippe Gerum

timekeeping: ipipe: forward clock shift value to DSO helpers

In order to propagate the "host real-time update" event to a co-kernek
(IPIPE_KEVT_HOSTRT), we need the clock shift value of the monotonic
clock to be passed to the legacy vDSO handler, for (re)calculating the
new wall clock time which is eventually announced to the co-kernel.

Only architectures which still implement the legacy
update_vsyscall_old() interface need this change.
parent 96df83cb
......@@ -135,7 +135,7 @@ extern void update_vsyscall_tz(void);
#elif defined(CONFIG_GENERIC_TIME_VSYSCALL_OLD)
extern void update_vsyscall_old(struct timespec *ts, struct timespec *wtm,
struct clocksource *c, u32 mult,
struct clocksource *c, u32 mult, u32 shift,
u64 cycle_last);
extern void update_vsyscall_tz(void);
......
......@@ -525,7 +525,7 @@ static inline void update_vsyscall(struct timekeeper *tk)
xt = timespec64_to_timespec(tk_xtime(tk));
wm = timespec64_to_timespec(tk->wall_to_monotonic);
update_vsyscall_old(&xt, &wm, tk->tkr_mono.clock, tk->tkr_mono.mult,
tk->tkr_mono.cycle_last);
tk->tkr_mono.shift, tk->tkr_mono.cycle_last);
}
static inline void old_vsyscall_fixup(struct timekeeper *tk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment