x86: pda_init(): fix memory leak when using CPU hotplug
commit49800efcb17afdf973f33e8aa8807b7f83993cc6
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Wed, 6 Aug 2008 08:27:30 +0000 (6 10:27 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 19:39:11 +0000 (11 21:39 +0200)
tree7b21c84fcf4d3e42570551fff63ce4ff248e00a2
parent2ae111cdd8d83ebf9de72e36e68a8c84b6ebbeea
x86: pda_init(): fix memory leak when using CPU hotplug

pda->irqstackptr is allocated whenever a CPU is set online.
But it is never freed. This results in a memory leak of 16K
for each CPU offline/online cycle.

Fix is to allocate pda->irqstackptr only once.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: akpm@linux-foundation.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/common_64.c