Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130277
b: refs/heads/master
c: 97179fd
h: refs/heads/master
i:
  130275: 8eccfcf
v: v3
  • Loading branch information
David Daney authored and Linus Torvalds committed Jan 28, 2009
1 parent 371dfdf commit 160416f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1267a8df209c7453d65acbdd56e3588954bf890b
refs/heads/master: 97179fd46da7ddedd18e95388130ed3e06c5a0c7
16 changes: 16 additions & 0 deletions trunk/kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ void handle_bad_irq(unsigned int irq, struct irq_desc *desc)
ack_bad_irq(irq);
}

#if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS)
static void __init init_irq_default_affinity(void)
{
alloc_bootmem_cpumask_var(&irq_default_affinity);
cpumask_setall(irq_default_affinity);
}
#else
static void __init init_irq_default_affinity(void)
{
}
#endif

/*
* Linux has a controller-independent interrupt architecture.
* Every controller has a 'controller-template', that is used
Expand Down Expand Up @@ -134,6 +146,8 @@ int __init early_irq_init(void)
int legacy_count;
int i;

init_irq_default_affinity();

desc = irq_desc_legacy;
legacy_count = ARRAY_SIZE(irq_desc_legacy);

Expand Down Expand Up @@ -219,6 +233,8 @@ int __init early_irq_init(void)
int count;
int i;

init_irq_default_affinity();

desc = irq_desc;
count = ARRAY_SIZE(irq_desc);

Expand Down
8 changes: 0 additions & 8 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
#if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS)
cpumask_var_t irq_default_affinity;

static int init_irq_default_affinity(void)
{
alloc_cpumask_var(&irq_default_affinity, GFP_KERNEL);
cpumask_setall(irq_default_affinity);
return 0;
}
core_initcall(init_irq_default_affinity);

/**
* synchronize_irq - wait for pending IRQ handlers (on other CPUs)
* @irq: interrupt number to wait for
Expand Down

0 comments on commit 160416f

Please sign in to comment.