perf tools: Don't fallback to setup_pager unconditionally
Because in tools like 'top' we don't want the pager. 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>
This commit is contained in:
@ -34,13 +34,14 @@ extern int pager_use_color;
|
||||
extern int use_browser;
|
||||
|
||||
#ifdef NO_NEWT_SUPPORT
|
||||
static inline void setup_browser(void)
|
||||
static inline void setup_browser(bool fallback_to_pager)
|
||||
{
|
||||
setup_pager();
|
||||
if (fallback_to_pager)
|
||||
setup_pager();
|
||||
}
|
||||
static inline void exit_browser(bool wait_for_ok __used) {}
|
||||
#else
|
||||
void setup_browser(void);
|
||||
void setup_browser(bool fallback_to_pager);
|
||||
void exit_browser(bool wait_for_ok);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user