提交 8ce26169 编写于 作者: I Ingo Molnar

Merge commit '559fa6e7' into perf/urgent

Merge reason: this commit was queued up quite some time ago but was
              forgotten about.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
...@@ -126,11 +126,9 @@ int __ref profile_init(void) ...@@ -126,11 +126,9 @@ int __ref profile_init(void)
if (prof_buffer) if (prof_buffer)
return 0; return 0;
prof_buffer = vmalloc(buffer_bytes); prof_buffer = vzalloc(buffer_bytes);
if (prof_buffer) { if (prof_buffer)
memset(prof_buffer, 0, buffer_bytes);
return 0; return 0;
}
free_cpumask_var(prof_cpu_mask); free_cpumask_var(prof_cpu_mask);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册