diff options
author | Honggang Li <enjoymindful@gmail.com> | 2014-08-12 15:36:15 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-08-16 14:59:02 +0200 |
commit | 3189eddbcafcc4d827f7f19facbeddec4424eba8 (patch) | |
tree | 0cb121567f2368d356f9b8900d852399aba6b842 /mm | |
parent | percpu: perform tlb flush after pcpu_map_pages() failure (diff) | |
download | linux-3189eddbcafcc4d827f7f19facbeddec4424eba8.tar.xz linux-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 */ |