x86: Further simplify mp_irq info handling
commit0e3fa13f4ee110de007bca3bf395b77997319fc8
authorFeng Tang <feng.tang@intel.com>
Wed, 8 Dec 2010 07:18:57 +0000 (8 15:18 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Dec 2010 20:52:06 +0000 (9 21:52 +0100)
tree801ee02881f6619822fae46e7ce52317d14d19d9
parent2d8009ba67f9503ceadf9d5a3b5637cee291ea8d
x86: Further simplify mp_irq info handling

assign_to_mp_irq() is copying the struct mpc_intsrc members one by
one. That's silly. Use memcpy() and let the compiler figure it out.
Same for the identical function assign_to_mpc_intsrc()

mp_irq_mpc_intsrc_cmp() is comparing the struct members one by one,
but no caller ever checks the different return codes. Use memcmp()
instead.

Remove the extra printk in MP_ioapic_info()

Signed-off-by: Feng Tang <feng.tang@linux.intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: "Alan Cox <alan@linux.intel.com>
Cc: Len Brown <len.brown@intel.com>
LKML-Reference: <20101208151857.212f0018@feng-i7>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/mpparse.c