patch-2.1.28 linux/arch/i386/kernel/irq.c
Next file: linux/drivers/char/ChangeLog
Previous file: linux/arch/i386/defconfig
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Feb 28 17:57:40 1997
- Orig file:
v2.1.27/linux/arch/i386/kernel/irq.c
- Orig date:
Sun Jan 26 02:07:04 1997
diff -u --recursive --new-file v2.1.27/linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
@@ -349,7 +349,7 @@
int do_random = 0;
lock_kernel();
- intr_count++;
+ atomic_inc(&intr_count);
#ifdef __SMP__
if(smp_threads_ready && active_kernel_processor!=smp_processor_id())
panic("IRQ %d: active processor set wrongly(%d not %d).\n", irq, active_kernel_processor, smp_processor_id());
@@ -366,7 +366,7 @@
}
if (do_random & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq);
- intr_count--;
+ atomic_dec(&intr_count);
unlock_kernel();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov