All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] Perf-tool/MIPS: support cross compiling of tools/perf for MIPS
@ 2010-10-11 12:18 Deng-Cheng Zhu
  2010-10-11 13:03 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Deng-Cheng Zhu @ 2010-10-11 12:18 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle, David Daney, a.p.zijlstra, paulus,
	mingo, acme



This version fixed the cosmetic issue pointed out by Ralf. If it looks ok,

Ralf, please help Ack it.


Thanks,


Deng-Cheng


Signed-off-by: Deng-Cheng Zhu<dengcheng.zhu@gmail.com>

---
 tools/perf/perf.h |   12 ++++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 6fb379b..cd05284 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -73,6 +73,18 @@
 #define cpu_relax()	asm volatile("":::"memory")
 #endif

+#ifdef __mips__
+#include "../../arch/mips/include/asm/unistd.h"
+#define rmb()		asm volatile(					\
+				".set	mips2\n\t"			\
+				"sync\n\t"				\
+				".set	mips0"				\
+				: /* no output */			\
+				: /* no input */			\
+				: "memory")
+#define cpu_relax()	asm volatile("" ::: "memory")
+#endif
+
 #include<time.h>
 #include<unistd.h>
 #include<sys/types.h>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] Perf-tool/MIPS: support cross compiling of tools/perf for MIPS
  2010-10-11 12:18 [PATCH v3] Perf-tool/MIPS: support cross compiling of tools/perf for MIPS Deng-Cheng Zhu
@ 2010-10-11 13:03 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2010-10-11 13:03 UTC (permalink / raw)
  To: Deng-Cheng Zhu
  Cc: linux-mips, Ralf Baechle, David Daney, a.p.zijlstra, paulus, acme


* Deng-Cheng Zhu <dengcheng.zhu@gmail.com> wrote:

> 
> 
> This version fixed the cosmetic issue pointed out by Ralf. If it looks ok,
> 
> Ralf, please help Ack it.

Please dont strip changelogs from (re-)submitted patches!

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-11 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 12:18 [PATCH v3] Perf-tool/MIPS: support cross compiling of tools/perf for MIPS Deng-Cheng Zhu
2010-10-11 13:03 ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.