patch-2.4.14 linux/include/asm-arm/arch-sa1100/system.h
Next file: linux/include/asm-arm/arch-shark/dma.h
Previous file: linux/include/asm-arm/arch-sa1100/simpad.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Oct 25 13:53:54 2001
- Orig file:
v2.4.13/linux/include/asm-arm/arch-sa1100/system.h
- Orig date:
Mon Aug 27 12:41:47 2001
diff -u --recursive --new-file v2.4.13/linux/include/asm-arm/arch-sa1100/system.h linux/include/asm-arm/arch-sa1100/system.h
@@ -7,8 +7,13 @@
static inline void arch_idle(void)
{
- if (!hlt_counter)
- cpu_do_idle(0);
+ if (!hlt_counter) {
+ int flags;
+ local_irq_save(flags);
+ if (!current->need_resched)
+ cpu_do_idle(0);
+ local_irq_restore(flags);
+ }
}
#ifdef CONFIG_SA1100_VICTOR
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)