|
@@ -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;
|