]> git.karo-electronics.de Git - linux-beck.git/commit
percpu: zero memory more efficiently in mm/percpu.c::pcpu_mem_alloc()
authorJesper Juhl <jj@chaosbits.net>
Sat, 30 Oct 2010 13:56:54 +0000 (15:56 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 7 Dec 2010 13:47:23 +0000 (14:47 +0100)
commit7af4c0932437f97938eef67e553c8d211f9edf33
treeaa559f570cc86e238f86c1f9260514114d048545
parentcf7d7e5a1980d1116ee152d25dac382b112b9c17
percpu: zero memory more efficiently in mm/percpu.c::pcpu_mem_alloc()

Don't do vmalloc() + memset() when vzalloc() will do.

tj: dropped unnecessary temp variable ptr.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c