patch-2.4.7 linux/drivers/char/rio/linux_compat.h
Next file: linux/drivers/char/rio/rio_linux.c
Previous file: linux/drivers/char/moxa.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Jul 4 14:41:33 2001
- Orig file:
v2.4.6/linux/drivers/char/rio/linux_compat.h
- Orig date:
Fri Aug 11 14:51:33 2000
diff -u --recursive --new-file v2.4.6/linux/drivers/char/rio/linux_compat.h linux/drivers/char/rio/linux_compat.h
@@ -16,11 +16,13 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <asm/hardirq.h>
+
#define disable(oldspl) save_flags (oldspl)
#define restore(oldspl) restore_flags (oldspl)
-#define sysbrk(x) kmalloc ((x), GFP_KERNEL)
+#define sysbrk(x) kmalloc ((x),in_interrupt()? GFP_ATOMIC : GFP_KERNEL)
#define sysfree(p,size) kfree ((p))
#define WBYTE(p,v) writeb(v, &p)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)