diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/scripts/python/sched-migration.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py index f73e1c736a34..7304d86c76c0 100644 --- a/tools/perf/scripts/python/sched-migration.py +++ b/tools/perf/scripts/python/sched-migration.py | |||
@@ -435,7 +435,10 @@ class TimeSlice: | |||
435 | self.__update_total_load(new_rq, in_rq) | 435 | self.__update_total_load(new_rq, in_rq) |
436 | 436 | ||
437 | ts_list.append(self) | 437 | ts_list.append(self) |
438 | self.event_cpus = [old_cpu, new_cpu] | 438 | |
439 | if old_rq is not out_rq: | ||
440 | self.event_cpus.append(old_cpu) | ||
441 | self.event_cpus.append(new_cpu) | ||
439 | 442 | ||
440 | def wake_up(self, ts_list, pid, cpu, fork): | 443 | def wake_up(self, ts_list, pid, cpu, fork): |
441 | old_rq = self.prev.rqs[cpu] | 444 | old_rq = self.prev.rqs[cpu] |