summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorHonggang Li <enjoymindful@gmail.com>2014-08-12 21:36:15 +0800
committerBen Hutchings <ben@decadent.org.uk>2014-11-05 20:27:38 +0000
commitba895cc68b8cd42daa559576783af546fd79d59b (patch)
treead020a7ad0d791b7b806e7ceba2fb21e1adc9f01 /mm
parentcaef3d5a04fd43316fccb25e93d350605ed54a23 (diff)
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: Ben Hutchings <ben@decadent.org.uk>
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 5c297506d8f4..e29a1c4f25a3 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1895,6 +1895,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 */