[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2674af740906140833h608ffdefj746096af3a559876@mail.gmail.com>
Date: Sun, 14 Jun 2009 23:33:03 +0800
From: Yong Zhang <yong.zhang0@...il.com>
To: mingo@...e.hu
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] setup_affinity return 1 with failure
setup_affinity should return 1 when failure, then make checking in
irq_select_affinity_usr() reasonable.
Signed-off-by: Yong Zhang <yong.zhang0@...il.com>
---
kernel/irq/manage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index aaf5c9d..8d2a992 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -137,7 +137,7 @@ int irq_set_affinity(unsigned int irq, const
struct cpumask *cpumask)
static int setup_affinity(unsigned int irq, struct irq_desc *desc)
{
if (!irq_can_set_affinity(irq))
- return 0;
+ return 1;
/*
* Preserve an userspace affinity setup, but make sure that
--
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists