summaryrefslogtreecommitdiffstats
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorHonggang Li <enjoymindful@gmail.com>2014-08-12 21:36:15 +0800
committerTejun Heo <tj@kernel.org>2014-08-16 08:59:02 -0400
commit3189eddbcafcc4d827f7f19facbeddec4424eba8 (patch)
tree0cb121567f2368d356f9b8900d852399aba6b842 /mm/percpu.c
parent849f5169097e1ba35b90ac9df76b5bb6f9c0aabd (diff)
downloadop-kernel-dev-3189eddbcafcc4d827f7f19facbeddec4424eba8.zip
op-kernel-dev-3189eddbcafcc4d827f7f19facbeddec4424eba8.tar.gz
percpu: free percpu allocation info for uniprocessor system
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> Cc: stable@vger.kernel.org
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 2139e30..da997f9 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1932,6 +1932,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 */
OpenPOWER on IntegriCloud