Lines Matching defs:affinity
19 /* For !GENERIC_IRQ_EFFECTIVE_AFF_MASK this looks at general affinity mask */
28 * which do not implement effective affinity, but the architecture has
29 * enabled the config switch. Use the general affinity mask instead.
45 pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
58 const struct cpumask *affinity;
64 * still in the radix tree. Also if the chip has no affinity setter,
100 * mask, so the last change of the affinity does not get lost. If
102 * any online CPU, use the current affinity mask.
105 affinity = irq_desc_get_pending_mask(desc);
107 affinity = irq_data_get_affinity_mask(d);
113 if (!cpumask_intersects(affinity, cpu_online_mask)) {
116 * the affinity untouched.
123 affinity = cpu_online_mask;
128 * disables the masking of offline CPUs from the supplied affinity
132 err = irq_do_set_affinity(d, affinity, false);
135 * If there are online CPUs in the affinity mask, but they have no
137 * affinity by migrating to any online CPU.
139 if (err == -ENOSPC && !irqd_affinity_is_managed(d) && affinity != cpu_online_mask) {
140 pr_debug("IRQ%u: set affinity failed for %*pbl, re-try with online CPUs\n",
141 d->irq, cpumask_pr_args(affinity));
143 affinity = cpu_online_mask;
146 err = irq_do_set_affinity(d, affinity, false);
150 pr_warn_ratelimited("IRQ%u: set affinity failed(%d).\n",
165 * If the affinity settings do not allow other CPUs, force them onto any
209 const struct cpumask *affinity = irq_data_get_affinity_mask(data);
212 !irq_data_get_irq_chip(data) || !cpumask_test_cpu(cpu, affinity))
220 * CPU then it is already assigned to a CPU in the affinity
226 irq_set_affinity_locked(data, affinity, false);
230 * irq_affinity_online_cpu - Restore affinity for managed interrupts