89
89
if (!cpumask_intersects(new_value, cpu_online_mask)) {
90
90
/* Special case for empty set - allow the architecture
91
91
code to set default SMP affinity. */
92
err = irq_select_affinity_usr(irq) ? -EINVAL : count;
92
err = irq_select_affinity_usr(irq, new_value) ? -EINVAL : count;
94
94
irq_set_affinity(irq, new_value);
360
#ifdef CONFIG_GENERIC_IRQ_SHOW
362
int __weak arch_show_interrupts(struct seq_file *p, int prec)
367
#ifndef ACTUAL_NR_IRQS
368
# define ACTUAL_NR_IRQS nr_irqs
371
int show_interrupts(struct seq_file *p, void *v)
375
unsigned long flags, any_count = 0;
376
int i = *(loff_t *) v, j;
377
struct irqaction *action;
378
struct irq_desc *desc;
380
if (i > ACTUAL_NR_IRQS)
383
if (i == ACTUAL_NR_IRQS)
384
return arch_show_interrupts(p, prec);
386
/* print header and calculate the width of the first column */
388
for (prec = 3, j = 1000; prec < 10 && j <= nr_irqs; ++prec)
391
seq_printf(p, "%*s", prec + 8, "");
392
for_each_online_cpu(j)
393
seq_printf(p, "CPU%-8d", j);
397
desc = irq_to_desc(i);
401
raw_spin_lock_irqsave(&desc->lock, flags);
402
for_each_online_cpu(j)
403
any_count |= kstat_irqs_cpu(i, j);
404
action = desc->action;
405
if (!action && !any_count)
408
seq_printf(p, "%*d: ", prec, i);
409
for_each_online_cpu(j)
410
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
412
if (desc->irq_data.chip) {
413
if (desc->irq_data.chip->irq_print_chip)
414
desc->irq_data.chip->irq_print_chip(&desc->irq_data, p);
415
else if (desc->irq_data.chip->name)
416
seq_printf(p, " %8s", desc->irq_data.chip->name);
418
seq_printf(p, " %8s", "-");
420
seq_printf(p, " %8s", "None");
422
#ifdef CONFIG_GENERIC_IRQ_SHOW_LEVEL
423
seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge");
426
seq_printf(p, "-%-8s", desc->name);
429
seq_printf(p, " %s", action->name);
430
while ((action = action->next) != NULL)
431
seq_printf(p, ", %s", action->name);
436
raw_spin_unlock_irqrestore(&desc->lock, flags);