History

timkeeping: Fix update_vsyscall to provide wall_to_monotonic offset

update_vsyscall() did not provide the wall_to_monotoinc offset, so arch specific implementations tend to reference wall_to_monotonic directly. This limits future cleanups in the timekeeping core, so this patch fixes the update_vsyscall interface to provide wall_to_monotonic, allowing wall_to_monotonic to be made static as planned in Documentation/feature-removal-schedule.txt

John Stultz committed 16 years ago

Commit 76158561 parent 06d518e6 files · +25 −19Browse files

Showing the changes to include/linux/clocksource.h (1 of 6 files). Show all

Unified · Split

include/linux/clocksource.h+4−2
@@ -313,11 +313,13 @@ clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) · 312 unmodified lines
313 313
314#ifdef CONFIG_GENERIC_TIME_VSYSCALL314#ifdef CONFIG_GENERIC_TIME_VSYSCALL
315extern void315extern void
316update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult);316update_vsyscall(struct timespec *ts, struct timespec *wtm,
317 struct clocksource *c, u32 mult);
317extern void update_vsyscall_tz(void);318extern void update_vsyscall_tz(void);
318#else319#else
319static inline void320static inline void
320update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult)321update_vsyscall(struct timespec *ts, struct timespec *wtm,
322 struct clocksource *c, u32 mult)
321{323{
322}324}
323 325

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t