提交 fa4e5c67 编写于 作者: J Jiri Olsa 提交者: Arnaldo Carvalho de Melo

perf tools: Use list_move in ordered_events_delete function

As Namhyung pointed out we can use list_move in ordered_events_delete.
Signed-off-by: NJiri Olsa <jolsa@kernel.org>
Suggested-by: NNamhyung Kim <namhyung@kernel.org>
Acked-by: NDavid Ahern <dsahern@gmail.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-m8ae5s5cuwyytitgb6iqilid@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 5f86b80b
无相关合并请求
......@@ -96,8 +96,7 @@ ordered_events__new(struct ordered_events *oe, u64 timestamp)
void ordered_events__delete(struct ordered_events *oe, struct ordered_event *event)
{
list_del(&event->list);
list_add(&event->list, &oe->cache);
list_move(&event->list, &oe->cache);
oe->nr_events--;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册