All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SIBYTE: remove irritating printk from set_affinity
@ 2009-06-06  7:53 Thomas Bogendoerfer
  2009-06-08 18:58 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2009-06-06  7:53 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

set_affinity() will be called with cpui masks, which have more than one
cpu set. Instead of generating noise we now select the first set
cpu and use that for setting affinity.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---

 arch/mips/sibyte/bcm1480/irq.c |    4 ----
 arch/mips/sibyte/sb1250/irq.c  |    5 -----
 2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c
index c147c4b..524dd36 100644
--- a/arch/mips/sibyte/bcm1480/irq.c
+++ b/arch/mips/sibyte/bcm1480/irq.c
@@ -116,10 +116,6 @@ static void bcm1480_set_affinity(unsigned int irq, const struct cpumask *mask)
 	unsigned long flags;
 	unsigned int irq_dirty;
 
-	if (cpumask_weight(mask) != 1) {
-		printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq);
-		return;
-	}
 	i = cpumask_first(mask);
 
 	/* Convert logical CPU to physical CPU */
diff --git a/arch/mips/sibyte/sb1250/irq.c b/arch/mips/sibyte/sb1250/irq.c
index 38cb998..a73ea36 100644
--- a/arch/mips/sibyte/sb1250/irq.c
+++ b/arch/mips/sibyte/sb1250/irq.c
@@ -111,11 +111,6 @@ static void sb1250_set_affinity(unsigned int irq, const struct cpumask *mask)
 
 	i = cpumask_first(mask);
 
-	if (cpumask_weight(mask) > 1) {
-		printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq);
-		return;
-	}
-
 	/* Convert logical CPU to physical CPU */
 	cpu = cpu_logical_map(i);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] SIBYTE: remove irritating printk from set_affinity
  2009-06-06  7:53 [PATCH] SIBYTE: remove irritating printk from set_affinity Thomas Bogendoerfer
@ 2009-06-08 18:58 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-06-08 18:58 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: linux-mips

On Sat, Jun 06, 2009 at 09:53:55AM +0200, Thomas Bogendoerfer wrote:

> set_affinity() will be called with cpui masks, which have more than one
> cpu set. Instead of generating noise we now select the first set
> cpu and use that for setting affinity.

Thanks, applied.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-08 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-06  7:53 [PATCH] SIBYTE: remove irritating printk from set_affinity Thomas Bogendoerfer
2009-06-08 18:58 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.