perf powerpc: Include util/util.h and remove stringify macros
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Thu, 24 Jul 2014 07:47:18 +0000 (00:47 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jul 2014 14:00:39 +0000 (11:00 -0300)
The stringify macros are defined in tools/perf/util/util.h and don't
need to be redfined specfiically for powerpc.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Michael Ellerman <michaele@au1.ibm.com>
Link: http://lkml.kernel.org/r/20140724074718.GB18829@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/powerpc/util/header.c

index 2f7073d107fd115fa75c15e2c9734b2fd501fef6..6c1b8a75db09ae4b8bda966463e829e0451489e4 100644 (file)
@@ -5,9 +5,7 @@
 #include <string.h>
 
 #include "../../util/header.h"
-
-#define __stringify_1(x)        #x
-#define __stringify(x)          __stringify_1(x)
+#include "../../util/util.h"
 
 #define mfspr(rn)       ({unsigned long rval; \
                         asm volatile("mfspr %0," __stringify(rn) \