Skip to content

Commit 7b2e444

Browse files
captain5050namhyung
authored andcommitted
perf threads: Remove unused dead thread list
Commit 40826c4 ("perf thread: Remove notion of dead threads") removed dead threads but the list head wasn't removed. Remove it here. Signed-off-by: Ian Rogers <irogers@google.com> Cc: K Prateek Nayak <kprateek.nayak@amd.com> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Sandipan Das <sandipan.das@amd.com> Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: German Gomez <german.gomez@arm.com> Cc: James Clark <james.clark@arm.com> Cc: Nick Terrell <terrelln@fb.com> Cc: Sean Christopherson <seanjc@google.com> Cc: Changbin Du <changbin.du@huawei.com> Cc: liuwenyu <liuwenyu7@huawei.com> Cc: Yang Jihong <yangjihong1@huawei.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Miguel Ojeda <ojeda@kernel.org> Cc: Song Liu <song@kernel.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Yanteng Si <siyanteng@loongson.cn> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20231024222353.3024098-7-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent c114903 commit 7b2e444

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

tools/perf/util/machine.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static void machine__threads_init(struct machine *machine)
6767
threads->entries = RB_ROOT_CACHED;
6868
init_rwsem(&threads->lock);
6969
threads->nr = 0;
70-
INIT_LIST_HEAD(&threads->dead);
7170
threads->last_match = NULL;
7271
}
7372
}

tools/perf/util/machine.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ struct threads {
3535
struct rb_root_cached entries;
3636
struct rw_semaphore lock;
3737
unsigned int nr;
38-
struct list_head dead;
3938
struct thread *last_match;
4039
};
4140

0 commit comments

Comments
 (0)