MIPS: Make irqflags.h functions preempt-safe for non-mipsr2 cpus