Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100145
b: refs/heads/master
c: 078c0bb
h: refs/heads/master
i:
  100143: 9d3b234
v: v3
  • Loading branch information
Ingo Molnar committed Jul 10, 2008
1 parent dac07b7 commit 027cb80
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bfaba873f0cc81c1747d6787f2721926192a3dc
refs/heads/master: 078c0bba55b3dc751881d40cf170c002eafc048d
30 changes: 30 additions & 0 deletions trunk/arch/x86/mach-default/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
#include <asm/e820.h>
#include <asm/setup.h>

/*
* Any quirks to be performed to initialize timers/irqs/etc?
*/
int (*arch_time_init_quirk)(void);
int (*arch_pre_intr_init_quirk)(void);
int (*arch_intr_init_quirk)(void);
int (*arch_trap_init_quirk)(void);

#ifdef CONFIG_HOTPLUG_CPU
#define DEFAULT_SEND_IPI (1)
#else
Expand All @@ -29,6 +37,10 @@ int no_broadcast=DEFAULT_SEND_IPI;
**/
void __init pre_intr_init_hook(void)
{
if (arch_pre_intr_init_quirk) {
if (arch_pre_intr_init_quirk())
return;
}
init_ISA_irqs();
}

Expand All @@ -52,6 +64,10 @@ static struct irqaction irq2 = {
**/
void __init intr_init_hook(void)
{
if (arch_intr_init_quirk) {
if (arch_intr_init_quirk())
return;
}
#ifdef CONFIG_X86_LOCAL_APIC
apic_intr_init();
#endif
Expand Down Expand Up @@ -81,6 +97,10 @@ void __init pre_setup_arch_hook(void)
**/
void __init trap_init_hook(void)
{
if (arch_trap_init_quirk) {
if (arch_trap_init_quirk())
return;
}
}

static struct irqaction irq0 = {
Expand All @@ -99,6 +119,16 @@ static struct irqaction irq0 = {
**/
void __init time_init_hook(void)
{
if (arch_time_init_quirk) {
/*
* A nonzero return code does not mean failure, it means
* that the architecture quirk does not want any
* generic (timer) setup to be performed after this:
*/
if (arch_time_init_quirk())
return;
}

irq0.mask = cpumask_of_cpu(0);
setup_irq(0, &irq0);
}
Expand Down

0 comments on commit 027cb80

Please sign in to comment.