• Ingo Molnar's avatar
    xen, x86/boot/e820: Simplify Xen's xen_e820_table construct · e7dbf7ad
    Ingo Molnar authored
    The Xen guest memory setup code has:
    
    	static struct e820_entry xen_e820_table[E820_MAX_ENTRIES] __initdata;
    	static u32 xen_e820_table_entries __initdata;
    
    ... which is really a 'struct e820_table', open-coded.
    
    Convert the Xen code over to use a single struct e820_table, as this
    will allow the simplification of the e820__update_table() API.
    
    No intended change in functionality, but not runtime tested.
    
    Cc: Alex Thorlton <athorlton@sgi.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Huang, Ying <ying.huang@intel.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Juergen Gross <jgross@suse.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul Jackson <pj@sgi.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rafael J. Wysocki <rjw@sisk.pl>
    Cc: Tejun Heo <tj@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Wei Yang <richard.weiyang@gmail.com>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    e7dbf7ad
setup.c 28.2 KB