x86/mm/highmem: Use generic kmap atomic implementation
[sfrench/cifs-2.6.git] / arch / x86 / mm / init_32.c
index 7c055259de3a66d4685395942c06348f45b14241..da31c2635ee43792d5bf9d7902fce1f652887e20 100644 (file)
@@ -394,19 +394,6 @@ repeat:
        return last_map_addr;
 }
 
-pte_t *kmap_pte;
-
-static void __init kmap_init(void)
-{
-       unsigned long kmap_vstart;
-
-       /*
-        * Cache the first kmap pte:
-        */
-       kmap_vstart = __fix_to_virt(FIX_KMAP_BEGIN);
-       kmap_pte = virt_to_kpte(kmap_vstart);
-}
-
 #ifdef CONFIG_HIGHMEM
 static void __init permanent_kmaps_init(pgd_t *pgd_base)
 {
@@ -712,8 +699,6 @@ void __init paging_init(void)
 
        __flush_tlb_all();
 
-       kmap_init();
-
        /*
         * NOTE: at this point the bootmem allocator is fully available.
         */