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/buffer_sync.c | |
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/buffer_sync.c')
-rw-r--r-- | drivers/oprofile/buffer_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c index b07ba2a14119..9304c4555079 100644 --- a/drivers/oprofile/buffer_sync.c +++ b/drivers/oprofile/buffer_sync.c | |||
@@ -491,7 +491,7 @@ typedef enum { | |||
491 | */ | 491 | */ |
492 | void sync_buffer(int cpu) | 492 | void sync_buffer(int cpu) |
493 | { | 493 | { |
494 | struct oprofile_cpu_buffer * cpu_buf = &cpu_buffer[cpu]; | 494 | struct oprofile_cpu_buffer *cpu_buf = &per_cpu(cpu_buffer, cpu); |
495 | struct mm_struct *mm = NULL; | 495 | struct mm_struct *mm = NULL; |
496 | struct task_struct * new; | 496 | struct task_struct * new; |
497 | unsigned long cookie = 0; | 497 | unsigned long cookie = 0; |