diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mm/highmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/mm/highmem.c b/arch/mips/mm/highmem.c index 060d28dca8a8..4481656d1065 100644 --- a/arch/mips/mm/highmem.c +++ b/arch/mips/mm/highmem.c | |||
@@ -42,6 +42,7 @@ void *__kmap_atomic(struct page *page, enum km_type type) | |||
42 | if (!PageHighMem(page)) | 42 | if (!PageHighMem(page)) |
43 | return page_address(page); | 43 | return page_address(page); |
44 | 44 | ||
45 | debug_kmap_atomic(type); | ||
45 | idx = type + KM_TYPE_NR*smp_processor_id(); | 46 | idx = type + KM_TYPE_NR*smp_processor_id(); |
46 | vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); | 47 | vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); |
47 | #ifdef CONFIG_DEBUG_HIGHMEM | 48 | #ifdef CONFIG_DEBUG_HIGHMEM |
@@ -88,6 +89,7 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type) | |||
88 | 89 | ||
89 | pagefault_disable(); | 90 | pagefault_disable(); |
90 | 91 | ||
92 | debug_kmap_atomic(type); | ||
91 | idx = type + KM_TYPE_NR*smp_processor_id(); | 93 | idx = type + KM_TYPE_NR*smp_processor_id(); |
92 | vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); | 94 | vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); |
93 | set_pte(kmap_pte-idx, pfn_pte(pfn, kmap_prot)); | 95 | set_pte(kmap_pte-idx, pfn_pte(pfn, kmap_prot)); |