[PATCH] Removed compiler errors for PowerPC architecture.
Stefano Babic
sbabic at denx.de
Tue Feb 3 09:01:46 EST 2009
CLOCK_TICK_RATE is not defined due to different order of include
files.
Signed-off-by: Stefano Babic <sbabic at denx.de>
---
arch/powerpc/include/asm/timex.h | 3 ++-
arch/powerpc/include/asm/trace-clock.h | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/timex.h b/arch/powerpc/include/asm/timex.h
index 55890c9..09f94e1 100644
--- a/arch/powerpc/include/asm/timex.h
+++ b/arch/powerpc/include/asm/timex.h
@@ -7,12 +7,13 @@
* PowerPC architecture timex specifications
*/
-#include <asm/time.h>
#include <asm/cputable.h>
#include <asm/reg.h>
#define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
+extern unsigned long tb_ticks_per_sec;
+
typedef unsigned long cycles_t;
static inline cycles_t get_cycles(void)
diff --git a/arch/powerpc/include/asm/trace-clock.h b/arch/powerpc/include/asm/trace-clock.h
index 9aee572..8dc491b 100644
--- a/arch/powerpc/include/asm/trace-clock.h
+++ b/arch/powerpc/include/asm/trace-clock.h
@@ -12,6 +12,7 @@
#include <linux/timex.h>
#include <linux/time.h>
#include <asm/processor.h>
+#include <asm/time.h>
static inline u32 trace_clock_read32(void)
{
--
1.5.4.3
--------------060502070808020000060703--
More information about the lttng-dev
mailing list