Cleanup x86/x86_64 apic.c files.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2006-02-15 14:13:10 +00:00
1 parent 5faf6b2ae3
commit 1a5dc16c66
3 files changed
+25 -24

No files matched your search

@@ -60,11 +60,6 @@ int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */
*/
int apic_verbosity;
int get_physical_broadcast(void)
{
return 0xff;
}
/*
* 'what should we do if we get a hw irq event on an illegal vector'.
* each architecture has to answer this themselves.
@@ -83,12 +78,19 @@ void ack_bad_irq(unsigned int irq)
ack_APIC_irq();
}
int get_physical_broadcast(void)
{
return 0xff;
}
#ifdef CONFIG_XEN
void switch_APIC_timer_to_ipi(void *cpumask) { }
EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
void switch_ipi_to_APIC_timer(void *cpumask) { }
EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
#else
#endif
#ifndef CONFIG_XEN
#ifndef CONFIG_SMP
static void up_apic_timer_interrupt_call(struct pt_regs *regs)
{
@@ -120,12 +122,12 @@ void smp_send_timer_broadcast_ipi(struct pt_regs *regs)
#endif
}
}
#endif
int setup_profiling_timer(unsigned int multiplier)
{
return -EINVAL;
}
#endif
/*
* This initializes the IO-APIC and APIC hardware if this is
@@ -36,11 +36,19 @@
#include <asm/hpet.h>
#include <asm/idle.h>
/*
* Debug level
*/
int apic_verbosity;
int disable_apic;
#ifdef CONFIG_XEN
void switch_APIC_timer_to_ipi(void *cpumask) { }
EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
void switch_ipi_to_APIC_timer(void *cpumask) { }
EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
#endif
int setup_profiling_timer(unsigned int multiplier)
{
return -EINVAL;
}
void smp_local_timer_interrupt(struct pt_regs *regs)
{
@@ -159,17 +167,7 @@ asmlinkage void smp_error_interrupt(void)
irq_exit();
}
int get_physical_broadcast(void)
{
return 0xff;
}
#ifdef CONFIG_XEN
void switch_APIC_timer_to_ipi(void *cpumask) { }
EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
void switch_ipi_to_APIC_timer(void *cpumask) { }
EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
#endif
int disable_apic;
/*
* This initializes the IO-APIC and APIC hardware if this is
@@ -432,11 +432,12 @@ void __init smp_cpus_done(unsigned int max_cpus)
{
}
#ifndef CONFIG_X86_LOCAL_APIC
int setup_profiling_timer(unsigned int multiplier)
{
/* Dummy function. */
return 0;
return -EINVAL;
}
#endif
/*
* Local variables:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.