X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-frv%2Fhighmem.h;h=ff4d6cdeb1522811bd4131da61d68575ff55502b;hb=f1da66e7592c978d9122cb05d8eada1bd900de1a;hp=0f390f41f81680a70c12fe26cdae314644466344;hpb=5206a79d7b217c139116fc6faef55d1c0e65c800;p=powerpc.git diff --git a/include/asm-frv/highmem.h b/include/asm-frv/highmem.h index 0f390f41f8..ff4d6cdeb1 100644 --- a/include/asm-frv/highmem.h +++ b/include/asm-frv/highmem.h @@ -115,7 +115,7 @@ static inline void *kmap_atomic(struct page *page, enum km_type type) { unsigned long paddr; - inc_preempt_count(); + pagefault_disable(); paddr = page_to_phys(page); switch (type) { @@ -170,8 +170,7 @@ static inline void kunmap_atomic(void *kvaddr, enum km_type type) default: BUG(); } - dec_preempt_count(); - preempt_check_resched(); + pagefault_enable(); } #endif /* !__ASSEMBLY__ */