patch-2.1.80 linux/drivers/ap1000/ringbuf.c
Next file: linux/drivers/block/Makefile
Previous file: linux/arch/sparc64/mm/init.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Fri Jan 16 20:38:21 1998
-  Orig file: 
v2.1.79/linux/drivers/ap1000/ringbuf.c
-  Orig date: 
Mon Jun 16 16:35:54 1997
diff -u --recursive --new-file v2.1.79/linux/drivers/ap1000/ringbuf.c linux/drivers/ap1000/ringbuf.c
@@ -49,7 +49,7 @@
 
 	/* preallocate some ringbuffers */
 	for (i=0;i<RBUF_RESERVED;i++) {
-		if (!(rb_ptr = (char *)__get_free_pages(GFP_ATOMIC,RBUF_RESERVED_ORDER,0))) {
+		if (!(rb_ptr = (char *)__get_free_pages(GFP_ATOMIC,RBUF_RESERVED_ORDER))) {
 			printk("failed to preallocate ringbuf %d\n",i);
 			return;
 		}
@@ -160,7 +160,7 @@
 	}
 	  
 	if (!rb_ptr) {
-		rb_ptr = (char *)__get_free_pages(GFP_USER,order,0);
+		rb_ptr = (char *)__get_free_pages(GFP_USER,order);
 		if (!rb_ptr) return -ENOMEM;
 
 		for (i = MAP_NR(rb_ptr); i <= MAP_NR(rb_ptr+rb_size-1); i++) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov