Messages in this thread | | | Date | Wed, 9 Dec 2009 09:33:34 +0100 | From | Frederic Weisbecker <> | Subject | Re: [PATCH 1/3] perf_event: cleanup for __perf_event_init_context() |
| |
On Wed, Dec 09, 2009 at 11:28:13AM +0800, Xiao Guangrong wrote: > This is a cleanup patch and does: > - define 'perf_cpu_context' variable with 'static' > - using kzalloc() instead of kmalloc() and memset() > > Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> > ---
And perf_event_init_cpu() doesn't need it as it's supposed to be statically zeroed already.
Looks good to me.
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
| |