Commit f5b162fe authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] fixes for oprofile on ppc64

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 :(
parent d86f4ccd
...@@ -245,7 +245,7 @@ static void add_us_sample(struct mm_struct * mm, struct op_sample * s) ...@@ -245,7 +245,7 @@ static void add_us_sample(struct mm_struct * mm, struct op_sample * s)
static inline int is_kernel(unsigned long val) static inline int is_kernel(unsigned long val)
{ {
return val > __PAGE_OFFSET; return val > PAGE_OFFSET;
} }
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/cache.h>
#include "cpu_buffer.h" #include "cpu_buffer.h"
#include "oprof.h" #include "oprof.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/cache.h>
struct task_struct; struct task_struct;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment