Commit e3e362f9 authored by Ingo Molnar's avatar Ingo Molnar

- make irqbalance work on UP-IOAPIC systems, fix from Zwane Mwaikambo.

parent 4d0b85ea
......@@ -207,7 +207,7 @@ typedef struct {
} ____cacheline_aligned irq_balance_t;
static irq_balance_t irq_balance[NR_IRQS] __cacheline_aligned
= { [ 0 ... NR_IRQS-1 ] = { 1, 0 } };
= { [ 0 ... NR_IRQS-1 ] = { 0, 0 } };
extern unsigned long irq_affinity [NR_IRQS];
......@@ -251,7 +251,7 @@ static inline void balance_irq(int irq)
irq_balance_t *entry = irq_balance + irq;
unsigned long now = jiffies;
if ((entry->timestamp != now) && (smp_num_cpus > 1)) {
if (entry->timestamp != now) {
unsigned long allowed_mask;
int random_number;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment