Commit 4d230249 authored by Honggang Li's avatar Honggang Li Committed by Kamal Mostafa

percpu: free percpu allocation info for uniprocessor system

commit 3189eddb 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: default avatarHonggang Li <enjoymindful@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 7f6d593b
...@@ -1911,6 +1911,8 @@ void __init setup_per_cpu_areas(void) ...@@ -1911,6 +1911,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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment