diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-03-09 16:31:00 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-03-09 16:31:00 +0000 |
commit | cba76631d1fc7b511facfca6449a0c1d5565fbf0 (patch) | |
tree | 566b375a761c58618a3cdb4e6e6d970c9760a735 /xen/arch/x86/apic.c | |
parent | 007f425ac5d2bc0b607fb4fb429ad92315f52de1 (diff) | |
download | xen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.tar.gz xen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.tar.bz2 xen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.zip |
move various bits into .init.* sections
This also includes the removal of some entirely unused functions.
The patch builds upon the makefile adjustments done in the earlier
sent patch titled "move more kernel decompression bits to .init.*
sections".
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/apic.c')
-rw-r--r-- | xen/arch/x86/apic.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c index 47cdd3a402..64d0c88c5b 100644 --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -164,18 +164,6 @@ static bool_t __read_mostly using_apic_timer; static bool_t __read_mostly enabled_via_apicbase; -void enable_NMI_through_LVT0 (void * dummy) -{ - unsigned int v, ver; - - ver = apic_read(APIC_LVR); - ver = GET_APIC_VERSION(ver); - v = APIC_DM_NMI; /* unmask and set to NMI */ - if (!APIC_INTEGRATED(ver)) /* 82489DX */ - v |= APIC_LVT_LEVEL_TRIGGER; - apic_write_around(APIC_LVT0, v); -} - int get_physical_broadcast(void) { if (modern_apic()) @@ -809,29 +797,6 @@ int lapic_resume(void) /* - * If Linux enabled the LAPIC against the BIOS default - * disable it down before re-entering the BIOS on shutdown. - * Otherwise the BIOS may get confused and not power-off. - * Additionally clear all LVT entries before disable_local_APIC - * for the case where Linux didn't enable the LAPIC. - */ -void lapic_shutdown(void) -{ - unsigned long flags; - - if (!cpu_has_apic) - return; - - local_irq_save(flags); - clear_local_APIC(); - - if (enabled_via_apicbase) - disable_local_APIC(); - - local_irq_restore(flags); -} - -/* * Detect and enable local APICs on non-SMP boards. * Original code written by Keir Fraser. */ |