[parisc-linux-cvs] DIFF 2.4.20 acenic.c

Grant Grundler grundler@dsl2.external.hp.com
Wed, 13 Nov 2002 23:44:36 -0700


Grant Grundler wrote:
> Log message:
> local_irq_save is defined by all arches in 2.4.20.
> if LINUX_VERSION_CODE test needs to compare against 2.4.20 or less.

What I meant was, I was too lazy to check if all archs in 2.4.19
(or earlier releases) also defined local_irq_save().
Which in in fact the case. Sorry.


Index: drivers/net/acenic.c
===================================================================
RCS file: /var/cvs/linux/drivers/net/acenic.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- drivers/net/acenic.c	13 Nov 2002 15:15:07 -0000	1.18
+++ drivers/net/acenic.c	14 Nov 2002 06:38:05 -0000	1.19
@@ -195,7 +195,7 @@ MODULE_DEVICE_TABLE(pci, acenic_pci_tbl)
 #define ace_sync_irq(irq)	synchronize_irq()
 #endif
 
-#if LINUX_VERSION_CODE < 0x2051e
+#if LINUX_VERSION_CODE < 0x20414
 #define local_irq_save(flags)		do{__save_flags(flags) ; \
 					   __cli();} while(0)
 #define local_irq_restore(flags)	__restore_flags(flags)