perf, ARC: Enable building perf tools for ARC
Although with uClibc there's more we need to do Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
parent
7fadc1e8fe
commit
9854783e55
1 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws);
|
||||||
#define CPUINFO_PROC "cpu model"
|
#define CPUINFO_PROC "cpu model"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __arc__
|
||||||
|
#define rmb() asm volatile("" ::: "memory")
|
||||||
|
#define cpu_relax() rmb()
|
||||||
|
#define CPUINFO_PROC "Processor"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue