Commit 7c2740f1 authored by Ralf Baechle's avatar Ralf Baechle

HUB interrupts are allocated per node, not per slice. Make

manipulation of the interrupt mask register atomic by disabling
interrupts.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 4f12bfe5
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#define LEVELS_PER_SLICE 128 #define LEVELS_PER_SLICE 128
struct slice_data { struct slice_data {
unsigned long irq_alloc_mask[2];
unsigned long irq_enable_mask[2]; unsigned long irq_enable_mask[2];
int level_to_irq[LEVELS_PER_SLICE]; int level_to_irq[LEVELS_PER_SLICE];
}; };
...@@ -20,6 +19,7 @@ struct hub_data { ...@@ -20,6 +19,7 @@ struct hub_data {
DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW); DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW);
cpumask_t h_cpus; cpumask_t h_cpus;
unsigned long slice_map; unsigned long slice_map;
unsigned long irq_alloc_mask[2];
struct slice_data slice[2]; struct slice_data slice[2];
}; };
......
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