diff options
Diffstat (limited to 'arch/parisc/include/asm/cacheflush.h')
-rw-r--r-- | arch/parisc/include/asm/cacheflush.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/cacheflush.h b/arch/parisc/include/asm/cacheflush.h index de65f66ea64e..ec2df4bab302 100644 --- a/arch/parisc/include/asm/cacheflush.h +++ b/arch/parisc/include/asm/cacheflush.h | |||
@@ -142,6 +142,7 @@ static inline void kunmap(struct page *page) | |||
142 | 142 | ||
143 | static inline void *kmap_atomic(struct page *page) | 143 | static inline void *kmap_atomic(struct page *page) |
144 | { | 144 | { |
145 | preempt_disable(); | ||
145 | pagefault_disable(); | 146 | pagefault_disable(); |
146 | return page_address(page); | 147 | return page_address(page); |
147 | } | 148 | } |
@@ -150,6 +151,7 @@ static inline void __kunmap_atomic(void *addr) | |||
150 | { | 151 | { |
151 | flush_kernel_dcache_page_addr(addr); | 152 | flush_kernel_dcache_page_addr(addr); |
152 | pagefault_enable(); | 153 | pagefault_enable(); |
154 | preempt_enable(); | ||
153 | } | 155 | } |
154 | 156 | ||
155 | #define kmap_atomic_prot(page, prot) kmap_atomic(page) | 157 | #define kmap_atomic_prot(page, prot) kmap_atomic(page) |