linux-mips
[Top] [All Lists]

[PATCH] SIBYTE: remove irritating printk from set_affinity

To: linux-mips@linux-mips.org
Subject: [PATCH] SIBYTE: remove irritating printk from set_affinity
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: Sat, 6 Jun 2009 09:53:55 +0200 (CEST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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);
 

<Prev in Thread] Current Thread [Next in Thread>