diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2016-03-19 08:30:20 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2016-03-20 14:30:31 -0400 |
| commit | 59a6e9efdd1b75c6e2c4a07bad361b4fa7aa741c (patch) | |
| tree | 6b7f64c8ec4f3b80a9fc3aff3c6285175948d3c7 /include/linux | |
| parent | e9b22ab48acccba501490f05a367647fcb9902c2 (diff) | |
hrtimer integration: properly trace late-added timers
When tasks add timers that have already expired (e.g., when preempted
during schedule_hrtimeout), we should not use the expriration time as
the reference time point, but rather the time when the timer was added
(the delay then includes activation of ksoftirqd, etc.).
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hrtimer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 8b4b87bf73fd..4cd94206e784 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
| @@ -116,7 +116,7 @@ struct hrtimer { | |||
| 116 | void *start_site; | 116 | void *start_site; |
| 117 | char start_comm[16]; | 117 | char start_comm[16]; |
| 118 | #endif | 118 | #endif |
| 119 | #ifdef CONFIG_REPORT_TIMER_LATENCY | 119 | #if defined(CONFIG_REPORT_TIMER_LATENCY) || defined(CONFIG_SCHED_OVERHEAD_TRACE) |
| 120 | ktime_t when_added; | 120 | ktime_t when_added; |
| 121 | #endif | 121 | #endif |
| 122 | }; | 122 | }; |
