diff options
author | Mike Travis <travis@sgi.com> | 2008-04-28 05:14:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:31 -0400 |
commit | 608dfddd845da5ab6accef70154c8910529699f7 (patch) | |
tree | 6480216e8248d79f2e69d3edd4658a99eaf0be13 /drivers/oprofile/cpu_buffer.h | |
parent | 7ae9392c0a3bc01562361bb21e23dfb2e5c81c5a (diff) |
oprofile: change cpu_buffer from array to per_cpu variable
Change cpu_buffer from array to per_cpu variable in oprofile functions.
[akpm@linux-foundation.org: coding-style fixes]
Cc: Philippe Elie <phil.el@wanadoo.fr>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.h')
-rw-r--r-- | drivers/oprofile/cpu_buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/oprofile/cpu_buffer.h b/drivers/oprofile/cpu_buffer.h index c66c025abe75..13588174311d 100644 --- a/drivers/oprofile/cpu_buffer.h +++ b/drivers/oprofile/cpu_buffer.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
15 | #include <linux/workqueue.h> | 15 | #include <linux/workqueue.h> |
16 | #include <linux/cache.h> | 16 | #include <linux/cache.h> |
17 | #include <linux/sched.h> | ||
17 | 18 | ||
18 | struct task_struct; | 19 | struct task_struct; |
19 | 20 | ||
@@ -47,7 +48,7 @@ struct oprofile_cpu_buffer { | |||
47 | struct delayed_work work; | 48 | struct delayed_work work; |
48 | } ____cacheline_aligned; | 49 | } ____cacheline_aligned; |
49 | 50 | ||
50 | extern struct oprofile_cpu_buffer cpu_buffer[]; | 51 | DECLARE_PER_CPU(struct oprofile_cpu_buffer, cpu_buffer); |
51 | 52 | ||
52 | void cpu_buffer_reset(struct oprofile_cpu_buffer * cpu_buf); | 53 | void cpu_buffer_reset(struct oprofile_cpu_buffer * cpu_buf); |
53 | 54 | ||