Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip: x86: Fix double enable_IR_x2apic() call on SMP kernel on !SMP boards x86: Increase CONFIG_NODES_SHIFT max to 10 ibft, x86: Change reserve_ibft_region() to find_ibft_region() x86, hpet: Fix bug in RTC emulation x86, hpet: Erratum workaround for read after write of HPET comparator bootmem, x86: Fix 32bit numa system without RAM on node 0 nobootmem, x86: Fix 32bit numa system without RAM on node 0 x86: Handle overlapping mptables x86: Make e820_remove_range to handle all covered case x86-32, resume: do a global tlb flush in S4 resume
This commit is contained in:
@@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(ibft_addr);
|
||||
* Routine used to find the iSCSI Boot Format Table. The logical
|
||||
* kernel address is set in the ibft_addr global variable.
|
||||
*/
|
||||
void __init reserve_ibft_region(void)
|
||||
unsigned long __init find_ibft_region(unsigned long *sizep)
|
||||
{
|
||||
unsigned long pos;
|
||||
unsigned int len = 0;
|
||||
@@ -77,6 +77,11 @@ void __init reserve_ibft_region(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ibft_addr)
|
||||
reserve_bootmem(pos, PAGE_ALIGN(len), BOOTMEM_DEFAULT);
|
||||
if (ibft_addr) {
|
||||
*sizep = PAGE_ALIGN(len);
|
||||
return pos;
|
||||
}
|
||||
|
||||
*sizep = 0;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user