diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-04-19 04:31:45 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:28:10 -0400 |
commit | 330fce23dab6e6a3d1979e55f27aba4c0c301331 (patch) | |
tree | 8c82aa4078e419b664a0523c35041bbe5eb488be /arch/x86/kernel/pci-dma.c | |
parent | 55c0d721df80dcc505dc888e85d4ca51ea150ce9 (diff) |
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/x86/kernel/pci-dma.c')
-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 1a017f00e867..81862d0c7a9a 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) | |||
92 | } | 92 | } |
93 | static void __init dma32_free_bootmem(void) | 93 | static void __init dma32_free_bootmem(void) |
94 | { | 94 | { |
95 | int node; | ||
96 | 95 | ||
97 | if (end_pfn <= MAX_DMA32_PFN) | 96 | if (end_pfn <= MAX_DMA32_PFN) |
98 | return; | 97 | return; |
@@ -100,9 +99,7 @@ static void __init dma32_free_bootmem(void) | |||
100 | if (!dma32_bootmem_ptr) | 99 | if (!dma32_bootmem_ptr) |
101 | return; | 100 | return; |
102 | 101 | ||
103 | for_each_online_node(node) | 102 | free_bootmem(__pa(dma32_bootmem_ptr), dma32_bootmem_size); |
104 | free_bootmem_node(NODE_DATA(node), __pa(dma32_bootmem_ptr), | ||
105 | dma32_bootmem_size); | ||
106 | 103 | ||
107 | dma32_bootmem_ptr = NULL; | 104 | dma32_bootmem_ptr = NULL; |
108 | dma32_bootmem_size = 0; | 105 | dma32_bootmem_size = 0; |