diff options
author | Honggang Li <enjoymindful@gmail.com> | 2014-08-12 21:36:15 +0800 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-10-13 15:41:24 +0200 |
commit | d1544eb455447cba71e7e90275642a85aebb1284 (patch) | |
tree | fdf91e911d20af54b233f4f10688aaf2377439cf /mm | |
parent | 40be39a74449a11f103f0324eee3a510ecd7f94e (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: Jiri Slaby <jslaby@suse.cz>
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 25e2ea52db82..9bc1bf914cc8 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 */ |