Messages in this thread | | | From | Andreas Schwab <> | Subject | Re: m68k: Convert to genirq (WIP) | Date | Fri, 17 Jun 2011 19:22:35 +0200 |
| |
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> This is the WARN_ONCE(!irqs_disabled()) check. > > static inline bool arch_irqs_disabled_flags(unsigned long flags) > { > return (flags & ~ALLOWINT) != 0;
That should be
return (flags & 0x700) == 0x700;
It doesn't make sense to use ALLOWINT here, since arch_local_irq_disable doesn't use it either.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
| |