Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Emde <C.Emde@osadl.org>2010-02-15 22:30:36 +0100
committerThomas Gleixner <tglx@linutronix.de>2010-02-18 17:04:40 +0100
commit16e4137caa24b5117724cab121151df013c66c3c (patch)
treef2ff78f23c889ffa58bcc2cab0c6fb8b555e614b
parent75df1a475db51b411a4b624d0e2111473627d8e1 (diff)
tracing: Include zero offset in timer histogram
If everything works well and the CPU is pretty fast, most wakeup timers have a delay of less than 1 us which is currently not recorded in the missed_timer_offsets histograms. It would, however, be preferable to even record such short offsets. This patch modifies the code to also consider delays of 0 us in the histogram. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/trace/latency_hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/latency_hist.c b/kernel/trace/latency_hist.c
index 1811038b02b2..b4dc1c2cd468 100644
--- a/kernel/trace/latency_hist.c
+++ b/kernel/trace/latency_hist.c
@@ -870,7 +870,7 @@ out:
static notrace void probe_hrtimer_interrupt(int cpu, long long latency_ns,
struct task_struct *curr, struct task_struct *task)
{
- if (latency_ns < 0 && task != NULL && rt_task(task) &&
+ if (latency_ns <= 0 && task != NULL && rt_task(task) &&
task->prio < curr->prio) {
unsigned long latency;