diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 5052caa91caa..d53e706a6f17 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -2405,7 +2405,7 @@ static int timehist_sched_change_event(struct perf_tool *tool, | |||
2405 | if (ptime->start && ptime->start > t) | 2405 | if (ptime->start && ptime->start > t) |
2406 | goto out; | 2406 | goto out; |
2407 | 2407 | ||
2408 | if (ptime->start > tprev) | 2408 | if (tprev && ptime->start > tprev) |
2409 | tprev = ptime->start; | 2409 | tprev = ptime->start; |
2410 | 2410 | ||
2411 | /* | 2411 | /* |