From: KAMEZAWA Hiroyuki This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- drivers/oprofile/oprofile_stats.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/oprofile/oprofile_stats.c~for_each_possible_cpu-oprofile drivers/oprofile/oprofile_stats.c --- devel/drivers/oprofile/oprofile_stats.c~for_each_possible_cpu-oprofile 2006-03-16 23:32:54.000000000 -0800 +++ devel-akpm/drivers/oprofile/oprofile_stats.c 2006-03-16 23:32:54.000000000 -0800 @@ -22,7 +22,7 @@ void oprofile_reset_stats(void) struct oprofile_cpu_buffer * cpu_buf; int i; - for_each_cpu(i) { + for_each_possible_cpu(i) { cpu_buf = &cpu_buffer[i]; cpu_buf->sample_received = 0; cpu_buf->sample_lost_overflow = 0; @@ -46,7 +46,7 @@ void oprofile_create_stats_files(struct if (!dir) return; - for_each_cpu(i) { + for_each_possible_cpu(i) { cpu_buf = &cpu_buffer[i]; snprintf(buf, 10, "cpu%d", i); cpudir = oprofilefs_mkdir(sb, dir, buf); _