sparc32: drop sparc_unmapped_base
authorSam Ravnborg <sam@ravnborg.org>
Thu, 26 Jul 2012 11:02:21 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 23:46:16 +0000 (16:46 -0700)
The base is always the same so no need to use a variable for this.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/page_32.h
arch/sparc/mm/init_32.c

index fab78a308ebfea24ca241e45227e541c343a7ead..f82a1f36b655d3e5d9d2aad3261821a234acff93 100644 (file)
@@ -107,8 +107,7 @@ typedef unsigned long iopgprot_t;
 
 typedef struct page *pgtable_t;
 
-extern unsigned long sparc_unmapped_base;
-#define TASK_UNMAPPED_BASE     sparc_unmapped_base
+#define TASK_UNMAPPED_BASE     0x50000000
 
 #else /* !(__ASSEMBLY__) */
 
index e8ea360a4d9b0ca34a60025c8fab9a3a0461120e..fc77bb8b576d8fedcf7abb9c67446a4d545a8266 100644 (file)
@@ -45,7 +45,6 @@ unsigned long pfn_base;
 EXPORT_SYMBOL(pfn_base);
 
 struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1];
-unsigned long sparc_unmapped_base;
 
 struct pgtable_cache_struct pgt_quicklists;
 
@@ -297,7 +296,6 @@ void __init paging_init(void)
        case sun4m:
        case sun4d:
                srmmu_paging_init();
-               sparc_unmapped_base = 0x50000000;
                break;
        default:
                prom_printf("paging_init: Cannot init paging on this Sparc\n");