patch-2.3.46 linux/arch/sparc64/kernel/smp.c
Next file: linux/arch/sparc64/kernel/sys_sparc.c
Previous file: linux/arch/sparc64/kernel/sbus.c
Back to the patch index
Back to the overall index
-  Lines: 11
 -  Date:
Mon Feb 14 15:34:21 2000
 -  Orig file: 
v2.3.45/linux/arch/sparc64/kernel/smp.c
 -  Orig date: 
Fri Jan 28 15:09:07 2000
 
diff -u --recursive --new-file v2.3.45/linux/arch/sparc64/kernel/smp.c linux/arch/sparc64/kernel/smp.c
@@ -753,9 +753,7 @@
 					 "ecache-size", (512 * 1024));
 	if (ecache_size > (4 * 1024 * 1024))
 		ecache_size = (4 * 1024 * 1024);
-	for (order = 0UL; (PAGE_SIZE << order) < ecache_size; order++)
-		;
-	flush_base = __get_free_pages(GFP_KERNEL, order);
+	flush_base = __get_free_pages(GFP_KERNEL, order = get_order(ecache_size));
 
 	if (flush_base != 0UL) {
 		__save_and_cli(flags);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)