mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
percpu: free percpu allocation info for uniprocessor system
commit 3189eddbcafcc4d827f7f19facbeddec4424eba8 upstream. Currently, only SMP system free the percpu allocation info. Uniprocessor system should free it too. For example, one x86 UML virtual machine with 256MB memory, UML kernel wastes one page memory. Signed-off-by: Honggang Li <enjoymindful@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
767d0fbb89
commit
f9c27a7c78
1 changed files with 2 additions and 0 deletions
|
@ -1910,6 +1910,8 @@ void __init setup_per_cpu_areas(void)
|
||||||
|
|
||||||
if (pcpu_setup_first_chunk(ai, fc) < 0)
|
if (pcpu_setup_first_chunk(ai, fc) < 0)
|
||||||
panic("Failed to initialize percpu areas.");
|
panic("Failed to initialize percpu areas.");
|
||||||
|
|
||||||
|
pcpu_free_alloc_info(ai);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
|
|
Loading…
Reference in a new issue