[PATCH] Add rmb() definition for NIOS2 architecture
Marek Vasut <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Marek Vasut <[email protected]> --- libperf_events/operf_utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h index 32954cc..8270e53 100644 --- a/libperf_events/operf_utils.h +++ b/libperf_events/operf_utils.h @@ -178,6 +178,11 @@ void op_release_resources(void); #define cpu_relax() asm volatile("" ::: "memory") #endif +#ifdef __nios2__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() asm volatile("" ::: "memory") +#endif + #ifdef __tile__ #include <asm/unistd.h> #define rmb() __insn_mf() -- 2.7.0 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140