]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] kexec: x86: resture apic virtual wire mode on shutdown
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 25 Jun 2005 21:57:44 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:47 +0000 (16:24 -0700)
commit4fa636baf83b6d78a8e5a0a00084e6772ab92826
tree25ae75b36a2543d6f7ccc6bbe30c35c65d038ee3
parent1c5e9a27972765f62e0ad1ee38a07ebf15546e2b
[PATCH] kexec: x86: resture apic virtual wire mode on shutdown

When coming out of apic mode attempt to set the appropriate
apic back into virtual wire mode.  This improves on previous versions
of this patch by by never setting bot the local apic and the ioapic
into veritual wire mode.

This code looks at data from the mptable to see if an ioapic has
an ExtInt input to make this decision.  A future improvement
is to figure out which apic or ioapic was in virtual wire mode
at boot time and to remember it.  That is potentially a more accurate
method, of selecting which apic to place in virutal wire mode.

Signed-off-by: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/apic.c
arch/i386/kernel/io_apic.c
include/asm-i386/apic.h
include/asm-i386/apicdef.h