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>
This commit is contained in:

committed by
Linus Torvalds

parent
7ae9392c0a
commit
608dfddd84
@@ -491,7 +491,7 @@ typedef enum {
|
||||
*/
|
||||
void sync_buffer(int cpu)
|
||||
{
|
||||
struct oprofile_cpu_buffer * cpu_buf = &cpu_buffer[cpu];
|
||||
struct oprofile_cpu_buffer *cpu_buf = &per_cpu(cpu_buffer, cpu);
|
||||
struct mm_struct *mm = NULL;
|
||||
struct task_struct * new;
|
||||
unsigned long cookie = 0;
|
||||
|
Reference in New Issue
Block a user