|
@@ -672,6 +672,10 @@ static int xive_irq_set_affinity(struct irq_data *d,
|
|
|
if (cpumask_any_and(cpumask, cpu_online_mask) >= nr_cpu_ids)
|
|
if (cpumask_any_and(cpumask, cpu_online_mask) >= nr_cpu_ids)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
|
|
+ /* Don't do anything if the interrupt isn't started */
|
|
|
|
|
+ if (!irqd_is_started(d))
|
|
|
|
|
+ return IRQ_SET_MASK_OK;
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* If existing target is already in the new mask, and is
|
|
* If existing target is already in the new mask, and is
|
|
|
* online then do nothing.
|
|
* online then do nothing.
|