perf hists: Move sort__need_collapse into struct perf_hpp_list
[cascardo/linux.git] / tools / perf / tests / hists_cumulate.c
index 4a2bbff..a9e3db3 100644 (file)
@@ -126,7 +126,7 @@ static void del_hist_entries(struct hists *hists)
        struct rb_root *root_out;
        struct rb_node *node;
 
-       if (sort__need_collapse)
+       if (hists__has(hists, need_collapse))
                root_in = &hists->entries_collapsed;
        else
                root_in = hists->entries_in;