diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-04-19 01:31:45 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-12 21:28:10 +0200 |
commit | 330fce23dab6e6a3d1979e55f27aba4c0c301331 (patch) | |
tree | 8c82aa4078e419b664a0523c35041bbe5eb488be /arch | |
parent | 55c0d721df80dcc505dc888e85d4ca51ea150ce9 (diff) | |
download | op-kernel-dev-330fce23dab6e6a3d1979e55f27aba4c0c301331.zip op-kernel-dev-330fce23dab6e6a3d1979e55f27aba4c0c301331.tar.gz |
x86: reserve dma32 early for gart fix
we can use free_bootmem() directly.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 1a017f0..81862d0 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c @@ -92,7 +92,6 @@ void __init dma32_reserve_bootmem(void) } static void __init dma32_free_bootmem(void) { - int node; if (end_pfn <= MAX_DMA32_PFN) return; @@ -100,9 +99,7 @@ static void __init dma32_free_bootmem(void) if (!dma32_bootmem_ptr) return; - for_each_online_node(node) - free_bootmem_node(NODE_DATA(node), __pa(dma32_bootmem_ptr), - dma32_bootmem_size); + free_bootmem(__pa(dma32_bootmem_ptr), dma32_bootmem_size); dma32_bootmem_ptr = NULL; dma32_bootmem_size = 0; |