patch-2.3.99-pre7 linux/arch/sparc64/mm/init.c

Next file: linux/arch/sparc64/mm/ultra.S
Previous file: linux/arch/sparc64/mm/fault.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/arch/sparc64/mm/init.c linux/arch/sparc64/mm/init.c
@@ -58,7 +58,7 @@
 
 	if(pgtable_cache_size > high) {
 		do {
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 			if(pgd_quicklist)
 				free_pgd_slow(get_pgd_fast()), freed++;
 #endif
@@ -68,7 +68,7 @@
 				free_pte_slow(get_pte_fast(1)), freed++;
 		} while(pgtable_cache_size > low);
 	}
-#ifndef __SMP__ 
+#ifndef CONFIG_SMP 
         if (pgd_cache_size > high / 4) {
 		struct page *page, *page2;
                 for (page2 = NULL, page = (struct page *)pgd_quicklist; page;) {
@@ -129,7 +129,7 @@
 	printk("%ld pages of RAM\n", num_physpages);
 	printk("%d free pages\n", nr_free_pages());
 	printk("%d pages in page table cache\n",pgtable_cache_size);
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 	printk("%d entries in page dir cache\n",pgd_cache_size);
 #endif	
 	show_buffers();
@@ -701,7 +701,7 @@
 	mm->context = new_ctx;
 }
 
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 struct pgtable_cache_struct pgt_quicklists;
 #endif
 
@@ -1207,7 +1207,7 @@
 	initpages = (((unsigned long) &__init_end) - ((unsigned long) &__init_begin));
 	initpages = PAGE_ALIGN(initpages) >> PAGE_SHIFT;
 
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 	{
 		/* Put empty_pg_dir on pgd_quicklist */
 		extern pgd_t empty_pg_dir[1024];

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)