Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670096

[patch 45/55] xen/events: Add support for effective affinity mask

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject [patch 45/55] xen/events: Add support for effective affinity mask
Date 2017-06-20 02:10 +0200
Message-ID <tUeU4-1fU-77@gated-at.bofh.it> (permalink)
References <tUeKl-Xe-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Update the effective affinity mask when an interrupt was successfully
targeted to a CPU.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/xen/events/events_base.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -1343,8 +1343,12 @@ static int set_affinity_irq(struct irq_d
 			    bool force)
 {
 	unsigned tcpu = cpumask_first_and(dest, cpu_online_mask);
+	int ret = rebind_irq_to_cpu(data->irq, tcpu);
 
-	return rebind_irq_to_cpu(data->irq, tcpu);
+	if (!ret)
+		irq_data_update_effective_affinity(data, cpumask_of(tcpu));
+
+	return ret;
 }
 
 static void enable_dynirq(struct irq_data *data)

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[patch 45/55] xen/events: Add support for effective affinity mask Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:10 +0200
  [tip:irq/core] xen/events: Add support for effective affinity mask tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-06-22 19:20 +0200

csiph-web