[PATCH] fixes for oprofile on ppc64

From: Anton Blanchard (anton@samba.org)
Date: Mon Dec 02 2002 - 03:16:45 EST


Hi,

Here are a few fixes I needed when porting oprofile to ppc64:

- __PAGE_OFFSET isnt defined for all architectures, use PAGE_OFFSET
  instead
- include linux/cache.h everywhere we use ____cacheline_aligned etc.
  Otherwise we end up with a structure called ____cacheline_aligned
  and no alignment :(

Anton

===== drivers/oprofile/buffer_sync.c 1.4 vs edited =====
--- 1.4/drivers/oprofile/buffer_sync.c Tue Nov 5 08:01:22 2002
+++ edited/drivers/oprofile/buffer_sync.c Fri Nov 29 14:31:07 2002
@@ -245,7 +245,7 @@
  
 static inline int is_kernel(unsigned long val)
 {
- return val > __PAGE_OFFSET;
+ return val > PAGE_OFFSET;
 }
 
 
===== drivers/oprofile/cpu_buffer.c 1.2 vs edited =====
--- 1.2/drivers/oprofile/cpu_buffer.c Wed Nov 27 06:38:46 2002
+++ edited/drivers/oprofile/cpu_buffer.c Fri Nov 29 14:30:18 2002
@@ -21,6 +21,7 @@
 #include <linux/vmalloc.h>
 #include <linux/smp.h>
 #include <linux/errno.h>
+#include <linux/cache.h>
  
 #include "cpu_buffer.h"
 #include "oprof.h"
===== drivers/oprofile/cpu_buffer.h 1.1 vs edited =====
--- 1.1/drivers/oprofile/cpu_buffer.h Wed Oct 16 07:45:51 2002
+++ edited/drivers/oprofile/cpu_buffer.h Mon Dec 2 12:25:16 2002
@@ -12,6 +12,7 @@
 
 #include <linux/types.h>
 #include <linux/spinlock.h>
+#include <linux/cache.h>
  
 struct task_struct;
  

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:12 EST