diff options
author | Honggang Li <enjoymindful@gmail.com> | 2014-08-12 21:36:15 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-08-16 08:59:02 -0400 |
commit | 3189eddbcafcc4d827f7f19facbeddec4424eba8 (patch) | |
tree | 0cb121567f2368d356f9b8900d852399aba6b842 /mm | |
parent | 849f5169097e1ba35b90ac9df76b5bb6f9c0aabd (diff) | |
download | linux-stable-3189eddbcafcc4d827f7f19facbeddec4424eba8.tar.gz linux-stable-3189eddbcafcc4d827f7f19facbeddec4424eba8.tar.bz2 linux-stable-3189eddbcafcc4d827f7f19facbeddec4424eba8.zip |
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')
-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 2139e30a4b44..da997f9800bd 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 */ |