x86: apic - introduce dummy apic operations
authorCyrill Gorcunov <gorcunov@openvz.org>
Sun, 12 Apr 2009 16:47:41 +0000 (20:47 +0400)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Apr 2009 17:23:53 +0000 (19:23 +0200)
commit08306ce61d6848e6fbf74fa4cc693c3fb29e943f
treef61e7f9061e5fa11447b5ab7fd473bfe8985bb99
parentc0eaa4536f08b98fbcfa7fce5b7b0de1bebcb0e1
x86: apic - introduce dummy apic operations

Impact: refactor, speed up and robustize code

In case if apic was disabled by kernel option
or by hardware limits we can use dummy operations
in apic->write to simplify the ack_APIC_irq() code.

At the lame time the patch fixes the missed EOI in
do_IRQ function (which has place if kernel is compiled
as X86-32 and interrupt without handler happens where
apic was not asked to be disabled via kernel option).

Note that native_apic_write_dummy() consists of
WARN_ON_ONCE to catch any buggy writes on enabled
APICs. Could be removed after some time of testing.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090412165058.724788431@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/irq.c