forked from luck/tmp_suning_uos_patched
5c35d69fb6
The ui operations so far were used by just one thread, but 'perf top --tui' now has two threads updating the screen, so we need to use a mutex to avoid garbling the screen. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
9 lines
124 B
C
9 lines
124 B
C
#ifndef _PERF_UI_H_
|
|
#define _PERF_UI_H_ 1
|
|
|
|
#include <pthread.h>
|
|
|
|
extern pthread_mutex_t ui__lock;
|
|
|
|
#endif /* _PERF_UI_H_ */
|