public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixes for oprofile on ppc64
@ 2002-12-02  8:16 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2002-12-02  8:16 UTC (permalink / raw)
  To: levon; +Cc: torvalds, linux-kernel


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;
  


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-02  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02  8:16 [PATCH] fixes for oprofile on ppc64 Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox