oprofile: more whitespace fixes
[linux-2.6.git] / drivers / oprofile / oprofile_stats.c
index d1f6d77..e0c4549 100644 (file)
@@ -19,11 +19,11 @@ struct oprofile_stat_struct oprofile_stats;
  
 void oprofile_reset_stats(void)
 {
-       struct oprofile_cpu_buffer * cpu_buf; 
+       struct oprofile_cpu_buffer *cpu_buf;
        int i;
  
        for_each_possible_cpu(i) {
-               cpu_buf = &cpu_buffer[i]; 
+               cpu_buf = &per_cpu(cpu_buffer, i);
                cpu_buf->sample_received = 0;
                cpu_buf->sample_lost_overflow = 0;
                cpu_buf->backtrace_aborted = 0;
@@ -36,11 +36,11 @@ void oprofile_reset_stats(void)
 }
 
 
-void oprofile_create_stats_files(struct super_block * sb, struct dentry * root)
+void oprofile_create_stats_files(struct super_block *sb, struct dentry *root)
 {
-       struct oprofile_cpu_buffer * cpu_buf;
-       struct dentry * cpudir;
-       struct dentry * dir;
+       struct oprofile_cpu_buffer *cpu_buf;
+       struct dentry *cpudir;
+       struct dentry *dir;
        char buf[10];
        int i;
 
@@ -49,7 +49,7 @@ void oprofile_create_stats_files(struct super_block * sb, struct dentry * root)
                return;
 
        for_each_possible_cpu(i) {
-               cpu_buf = &cpu_buffer[i]; 
+               cpu_buf = &per_cpu(cpu_buffer, i);
                snprintf(buf, 10, "cpu%d", i);
                cpudir = oprofilefs_mkdir(sb, dir, buf);