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
313313
314314 #ifdef CONFIG_GENERIC_TIME_VSYSCALL
315315 extern void
316−update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult);
316+update_vsyscall(struct timespec *ts, struct timespec *wtm,
317+ struct clocksource *c, u32 mult);
317318 extern void update_vsyscall_tz(void);
318319 #else
319320 static inline void
320−update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult)
321+update_vsyscall(struct timespec *ts, struct timespec *wtm,
322+ struct clocksource *c, u32 mult)
321323 {
322324 }
323325

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