percpu: free percpu allocation info for uniprocessor system
authorHonggang Li <enjoymindful@gmail.com>
Tue, 12 Aug 2014 13:36:15 +0000 (21:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:13 +0000 (14:54 -0700)
commitf9c27a7c7880c29c7579dea9134dfef355f6c3eb
tree7e5c335539d7bb476bea2c26f4cad9b167962aa6
parent767d0fbb89f87a2e386b953280b03739a74a8f83
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>
mm/percpu.c