[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150225212631.GK18705@kernel.org>
Date: Wed, 25 Feb 2015 18:26:31 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Rabin Vincent <rabin@....in>
Cc: Ingo Molnar <mingo@...hat.com>, Paul Mackerras <paulus@...ba.org>,
linux-kernel@...r.kernel.org, linux-cris-kernel@...s.com
Subject: Re: [PATCH] perf tools: add CRIS support
Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu:
> Define the required macros to allow perf to be built for CRIS.
Thanks, applied to perf/core
- Arnaldo
> Signed-off-by: Rabin Vincent <rabin@....in>
> ---
> tools/perf/perf-sys.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
> index 6ef6816..bc19550 100644
> --- a/tools/perf/perf-sys.h
> +++ b/tools/perf/perf-sys.h
> @@ -122,6 +122,13 @@
> #define cpu_relax() asm volatile("yield" ::: "memory")
> #endif
>
> +#ifdef __cris__
> +#define mb() asm volatile("" ::: "memory")
> +#define wmb() asm volatile("" ::: "memory")
> +#define rmb() asm volatile("" ::: "memory")
> +#define CPUINFO_PROC {"cpu model"}
> +#endif
> +
> #ifdef __mips__
> #define mb() asm volatile( \
> ".set mips2\n\t" \
> --
> 2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists