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


Groups > linux.kernel > #1299705 > unrolled thread

[patch 07/14] x86/irq: Copy vectormask instead of an AND operation

Started byThomas Gleixner <tglx@linutronix.de>
First post2015-12-31 17:40 +0100
Last post2015-12-31 17:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [patch 07/14] x86/irq: Copy vectormask instead of an AND operation Thomas Gleixner <tglx@linutronix.de> - 2015-12-31 17:40 +0100

#1299705 — [patch 07/14] x86/irq: Copy vectormask instead of an AND operation

FromThomas Gleixner <tglx@linutronix.de>
Date2015-12-31 17:40 +0100
Subject[patch 07/14] x86/irq: Copy vectormask instead of an AND operation
Message-ID<qLOqE-6NB-47@gated-at.bofh.it>
In the case that the new vector mask is a subset of the existing mask there is
no point to do a AND operation of currentmask & newmask. The result is
newmask. So we can simply copy the new mask to the current mask and be done
with it. Preparatory patch for further consolidation.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/x86/kernel/apic/vector.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -154,7 +154,7 @@ static int __assign_irq_vector(int irq,
 				       vector_cpumask);
 			d->move_in_progress =
 			   cpumask_intersects(d->old_domain, cpu_online_mask);
-			cpumask_and(d->domain, d->domain, vector_cpumask);
+			cpumask_copy(d->domain, vector_cpumask);
 			goto success;
 		}
 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web