2001-02-18 11:23:40

by Francis Galiegue

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

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, [email protected] - 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