x86, ioapic: Avoid writing io_apic id if already correct
authorYinghai Lu <yinghai@kernel.org>
Tue, 7 Dec 2010 08:59:49 +0000 (00:59 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Dec 2010 20:52:05 +0000 (21:52 +0100)
commit60d79fd99ff3b9c692b260a4d53a203f537c052a
treeee4abd4262825715f9a8d4f773229429bf9aa8ea
parent0450193bffed6e4b6160c4a5ccb0df158eba7d2a
x86, ioapic: Avoid writing io_apic id if already correct

For 32bit mptable path, setup_ids_from_mpc() always writes the io_apic
id register, even there is no change needed.

Skip the write, when readout and mptable match.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
LKML-Reference: <4CFDF785.7010401@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c