Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1670064
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [patch 53/55] genirq/cpuhotplug: Avoid irq affinity setting for single targets |
| Date | 2017-06-20 02:10 +0200 |
| Message-ID | <tUeU2-1fU-15@gated-at.bofh.it> (permalink) |
| References | <tUeKl-Xe-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Avoid trying to add a newly online CPU to the effective affinity mask of an
started up interrupt. That interrupt will either stay on the already online
CPU or move around for no value.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/irq/cpuhotplug.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
--- a/kernel/irq/cpuhotplug.c
+++ b/kernel/irq/cpuhotplug.c
@@ -148,9 +148,17 @@ static void irq_restore_affinity_of_irq(
!irq_data_get_irq_chip(data) || !cpumask_test_cpu(cpu, affinity))
return;
- if (irqd_is_managed_and_shutdown(data))
+ if (irqd_is_managed_and_shutdown(data)) {
irq_startup(desc, IRQ_RESEND, IRQ_START_COND);
- else
+ return;
+ }
+
+ /*
+ * If the interrupt can only be directed to a single target
+ * CPU then it is already assigned to a CPU in the affinity
+ * mask. No point in trying to move it around.
+ */
+ if (!irqd_is_single_target(data))
irq_set_affinity_locked(data, affinity, false);
}
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[patch 53/55] genirq/cpuhotplug: Avoid irq affinity setting for single targets Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:10 +0200 [tip:irq/core] genirq/cpuhotplug: Avoid irq affinity setting for single targets tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-06-22 19:20 +0200
csiph-web