diff options
author | Honggang Li <enjoymindful@gmail.com> | 2014-08-12 21:36:15 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-05 14:54:13 -0700 |
commit | f9c27a7c7880c29c7579dea9134dfef355f6c3eb (patch) | |
tree | 7e5c335539d7bb476bea2c26f4cad9b167962aa6 /mm | |
parent | 767d0fbb89f87a2e386b953280b03739a74a8f83 (diff) | |
download | linux-3.10-f9c27a7c7880c29c7579dea9134dfef355f6c3eb.tar.gz linux-3.10-f9c27a7c7880c29c7579dea9134dfef355f6c3eb.tar.bz2 linux-3.10-f9c27a7c7880c29c7579dea9134dfef355f6c3eb.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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 25e2ea52db8..9bc1bf914cc 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1910,6 +1910,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 */ |