[PATCH] setup_affinity return 1 with failure

From: Yong Zhang
Date: Sun Jun 14 2009 - 11:33:32 EST


setup_affinity should return 1 when failure, then make checking in
irq_select_affinity_usr() reasonable.

Signed-off-by: Yong Zhang <yong.zhang0@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/