summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorHonggang Li <enjoymindful@gmail.com>2014-08-12 21:36:15 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-05 14:52:20 -0700
commitb25d2579bfd58c46fe23452d32cdd8943041cb77 (patch)
treee6490d1b478005e326eb63f638c7f6269cdc70d1 /mm
parent41722f462d7adb0f330454e96bca2bf43c87cfa3 (diff)
downloadlinux-stable-b25d2579bfd58c46fe23452d32cdd8943041cb77.tar.gz
linux-stable-b25d2579bfd58c46fe23452d32cdd8943041cb77.tar.bz2
linux-stable-b25d2579bfd58c46fe23452d32cdd8943041cb77.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/percpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index a2a54a85f691..8cd4308471c3 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1917,6 +1917,8 @@ void __init setup_per_cpu_areas(void)
if (pcpu_setup_first_chunk(ai, fc) < 0)
panic("Failed to initialize percpu areas.");
+
+ pcpu_free_alloc_info(ai);
}
#endif /* CONFIG_SMP */