mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
perf session: Register the idle thread in perf_session__process_events
No need for all tools to register it and then immediately call perf_session__process_events. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260741029-4430-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
301a0b0202
commit
13df45ca1c
8 changed files with 16 additions and 24 deletions
|
@ -1670,8 +1670,6 @@ static int read_events(void)
|
|||
if (session == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
register_idle_thread();
|
||||
|
||||
err = perf_session__process_events(session, &event_ops, 0,
|
||||
&event__cwdlen, &event__cwd);
|
||||
perf_session__delete(session);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue