[parisc-linux-cvs] Re: DIFF 2.4.19-pa2 update 0.92 acenic.c

Matthew Wilcox willy@debian.org
Mon, 5 Aug 2002 21:36:05 +0100


On Mon, Aug 05, 2002 at 02:11:30PM -0600, Grant Grundler wrote:
> Grant Grundler wrote:
> > latest patch from Jes Sorensen. Same code builds on 2.5.30 now.
> > Still not using pci_enable_device() but his hacks work on a500.

> +#if LINUX_VERSION_CODE < 0x2051e
> +#define local_irq_save(flags)		do{__save_flags(flags) ; \
> +					   __cli();} while(0)
> +#define local_irq_restore(flags)	__restore_flags(flags)
> +#endif
> +

this is just wrong.  in 2.4.9, we have:

#define local_irq_restore(x)    __restore_flags(x)

in asm-i386/system.h.  so the version code check should probably be for
20400.

-- 
Revolutions do not require corporate support.