diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2009-04-02 16:01:26 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-02 16:37:04 +0200 |
commit | a7f8c50d90a4e983c456ae75e534b5cd6c03674b (patch) | |
tree | b82409e5a859ed5c4fb245998ce438ff7f290847 /arch/x86/mm/iomap_32.c | |
parent | 83f2f0ed715eb15a8e13c07df479d65bbc10d8d5 (diff) | |
download | kernel_samsung_espresso10-a7f8c50d90a4e983c456ae75e534b5cd6c03674b.zip kernel_samsung_espresso10-a7f8c50d90a4e983c456ae75e534b5cd6c03674b.tar.gz kernel_samsung_espresso10-a7f8c50d90a4e983c456ae75e534b5cd6c03674b.tar.bz2 |
x86, mm: fix misuse of debug_kmap_atomic
Impact: fix CONFIG_DEBUG_HIGHMEM=y breakage
Commit 7ca43e756 ("mm: use debug_kmap_atomic") introduced some
debug_kmap_atomic() calls in the wrong places.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <20090402070126.GA3951@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/iomap_32.c')
-rw-r--r-- | arch/x86/mm/iomap_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/iomap_32.c b/arch/x86/mm/iomap_32.c index bff0c90..e331f77 100644 --- a/arch/x86/mm/iomap_32.c +++ b/arch/x86/mm/iomap_32.c @@ -39,6 +39,7 @@ void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type, pgprot_t prot) pagefault_disable(); + debug_kmap_atomic(type); idx = type + KM_TYPE_NR * smp_processor_id(); vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); set_pte(kmap_pte - idx, pfn_pte(pfn, prot)); @@ -72,7 +73,6 @@ iounmap_atomic(void *kvaddr, enum km_type type) unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK; enum fixed_addresses idx = type + KM_TYPE_NR*smp_processor_id(); - debug_kmap_atomic(type); /* * Force other mappings to Oops if they'll try to access this pte * without first remap it. Keeping stale mappings around is a bad idea |