diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 22:28:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 22:28:09 -0500 |
commit | fbf07eac7bf21c262143194181bd97c5d18b8ceb (patch) | |
tree | c9228b7d272f1e39472da28032605ecd1860e688 /include/linux | |
parent | 60d8ce2cd6c283132928c11f3fd57ff4187287e0 (diff) | |
parent | 8629ea2eaba8ca0de2e38ce1b4a825e16255976e (diff) |
Merge branch 'timers-for-linus-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-for-linus-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
hrtimer: Fix /proc/timer_list regression
itimers: Fix racy writes to cpu_itimer fields
timekeeping: Fix clock_gettime vsyscall time warp
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/clocksource.h | 6 | ||||
-rw-r--r-- | include/linux/hrtimer.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 279c5478e8a6..8a4a130cc196 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -292,10 +292,12 @@ clocksource_calc_mult_shift(struct clocksource *cs, u32 freq, u32 minsec) | |||
292 | } | 292 | } |
293 | 293 | ||
294 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL | 294 | #ifdef CONFIG_GENERIC_TIME_VSYSCALL |
295 | extern void update_vsyscall(struct timespec *ts, struct clocksource *c); | 295 | extern void |
296 | update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult); | ||
296 | extern void update_vsyscall_tz(void); | 297 | extern void update_vsyscall_tz(void); |
297 | #else | 298 | #else |
298 | static inline void update_vsyscall(struct timespec *ts, struct clocksource *c) | 299 | static inline void |
300 | update_vsyscall(struct timespec *ts, struct clocksource *c, u32 mult) | ||
299 | { | 301 | { |
300 | } | 302 | } |
301 | 303 | ||
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index ff037f0b1b4e..9bace4b9f4fe 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -446,7 +446,7 @@ extern void timer_stats_update_stats(void *timer, pid_t pid, void *startf, | |||
446 | 446 | ||
447 | static inline void timer_stats_account_hrtimer(struct hrtimer *timer) | 447 | static inline void timer_stats_account_hrtimer(struct hrtimer *timer) |
448 | { | 448 | { |
449 | if (likely(!timer->start_site)) | 449 | if (likely(!timer_stats_active)) |
450 | return; | 450 | return; |
451 | timer_stats_update_stats(timer, timer->start_pid, timer->start_site, | 451 | timer_stats_update_stats(timer, timer->start_pid, timer->start_site, |
452 | timer->function, timer->start_comm, 0); | 452 | timer->function, timer->start_comm, 0); |
@@ -457,8 +457,6 @@ extern void __timer_stats_hrtimer_set_start_info(struct hrtimer *timer, | |||
457 | 457 | ||
458 | static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer) | 458 | static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer) |
459 | { | 459 | { |
460 | if (likely(!timer_stats_active)) | ||
461 | return; | ||
462 | __timer_stats_hrtimer_set_start_info(timer, __builtin_return_address(0)); | 460 | __timer_stats_hrtimer_set_start_info(timer, __builtin_return_address(0)); |
463 | } | 461 | } |
464 | 462 | ||