[PATCH] 2.4.1-ac16, arch/i386/kernel/irq.c: spurious #if CONFIG_SMP

Francis Galiegue (fg@mandrakesoft.com)
Sun, 18 Feb 2001 12:33:42 +0100 (CET)


In irq_affinity_write_proc:

--- arch/i386/kernel/irq.c.old Sun Feb 18 12:22:06 2001
+++ arch/i386/kernel/irq.c Sun Feb 18 12:22:31 2001
@@ -1080,7 +1080,6 @@

err = parse_hex_value(buffer, count, &new_value);

-#if CONFIG_SMP
/*
* Do not allow disabling IRQs completely - it's a too easy
* way to make the system unusable accidentally :-) At least
@@ -1088,7 +1087,6 @@
*/
if (!(new_value & cpu_online_map))
return -EINVAL;
-#endif

irq_affinity[irq] = new_value;
irq_desc[irq].handler->set_affinity(irq, new_value);

-- 
Francis Galiegue, fg@mandrakesoft.com - Normand et fier de l'être
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook

- 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/