aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/proc.c')
-rw-r--r--kernel/irq/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 90fe05f23e69..847b98a611e0 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -36,7 +36,7 @@ void proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
36void proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val) 36void proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
37{ 37{
38 set_balance_irq_affinity(irq, mask_val); 38 set_balance_irq_affinity(irq, mask_val);
39 irq_affinity[irq] = mask_val; 39 irq_desc[irq].affinity = mask_val;
40 irq_desc[irq].chip->set_affinity(irq, mask_val); 40 irq_desc[irq].chip->set_affinity(irq, mask_val);
41} 41}
42#endif 42#endif
@@ -44,7 +44,7 @@ void proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
44static int irq_affinity_read_proc(char *page, char **start, off_t off, 44static int irq_affinity_read_proc(char *page, char **start, off_t off,
45 int count, int *eof, void *data) 45 int count, int *eof, void *data)
46{ 46{
47 int len = cpumask_scnprintf(page, count, irq_affinity[(long)data]); 47 int len = cpumask_scnprintf(page, count, irq_desc[(long)data].affinity);
48 48
49 if (count - len < 2) 49 if (count - len < 2)
50 return -EINVAL; 50 return -EINVAL;