]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SPARC64]: Fix memory leak when cpu hotplugging.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 9 Aug 2007 00:32:33 +0000 (17:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 9 Aug 2007 00:33:52 +0000 (17:33 -0700)
commitb434e71933aa0519ee042c01419db76b7dcc058e
tree0aa4506224aea925a95631f4b1fe7c2c2d07de4f
parent6c70b6fc7b6fc321636a014082d9e32333da1f80
[SPARC64]: Fix memory leak when cpu hotplugging.

Every time a cpu is added via hotplug, we allocate the per-cpu MONDO
queues but we never free them up.  Freeing isn't easy since the first
cpu gets this memory from bootmem.

Therefore, the simplest thing to do to fix this bug is to allocate the
queues for all possible cpus at boot time.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/hvtramp.S
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/trampoline.S