Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3189eddb authored by Honggang Li's avatar Honggang Li Committed by Tejun Heo
Browse files

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: default avatarHonggang Li <enjoymindful@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
parent 849f5169
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 */