parisc: Call pagefault_disable/pagefault_enable in kmap_atomic/kunmap_atomic
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Sun, 11 Apr 2010 16:36:14 +0000 (16:36 +0000)
committerKyle McMartin <kyle@dreadnought.i.jkkm.org>
Sun, 30 May 2010 09:48:32 +0000 (05:48 -0400)
commit210501aa570fdaa8b06e56fd1c04f31f2d3f368b
tree50d0cf3f68713b2d7acb7a3763fff3c0f89aa682
parent9b437bca163c44d4ec6544241f29451675693cd6
parisc: Call pagefault_disable/pagefault_enable in kmap_atomic/kunmap_atomic

Based on the generic implementation of kmap_atomic and kunmap_atomic,
we should call pagefault_disable and pagefault_enable in our PA8000
implementation.

The define for kmap_atomic_prot was also missing, and I updated
kmap_atomic_pfn to use the generic implementation because of the
change to kmap_atomic.

I believe that this change is needed to fix the fork copy-on-write
bug.

Signed-off-by: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/include/asm/cacheflush.h