X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=kernel%2Fprofile.c;h=7724e0409bae7222638fae02c1fe0924e4ae751a;hb=881c47760bc66b43360337da37d2a9de4af865b0;hp=784933acf5b831e884d7538a18a02d1e29ee5860;hpb=14ed74fbe2b917f0ad3e30cf2644203c04a45e89;p=linux-2.6-block.git diff --git a/kernel/profile.c b/kernel/profile.c index 784933acf5b8..7724e0409bae 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -114,12 +114,15 @@ int __ref profile_init(void) if (!slab_is_available()) { prof_buffer = alloc_bootmem(buffer_bytes); alloc_bootmem_cpumask_var(&prof_cpu_mask); + cpumask_copy(prof_cpu_mask, cpu_possible_mask); return 0; } if (!alloc_cpumask_var(&prof_cpu_mask, GFP_KERNEL)) return -ENOMEM; + cpumask_copy(prof_cpu_mask, cpu_possible_mask); + prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL); if (prof_buffer) return 0;