Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53304
b: refs/heads/master
c: 254f9c5
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed May 5, 2007
1 parent 7496745 commit 44e1dac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5456e040eaac7eb9545d49c38984af2047699be
refs/heads/master: 254f9c5cd2d3b41e64f59df816630f7ca5548a8a
10 changes: 8 additions & 2 deletions trunk/include/linux/highmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ static inline void *kmap(struct page *page)

#define kunmap(page) do { (void) (page); } while (0)

#define kmap_atomic(page, idx) \
({ pagefault_disable(); page_address(page); })
#include <asm/kmap_types.h>

static inline void *kmap_atomic(struct page *page, enum km_type idx)
{
pagefault_disable();
return page_address(page);
}

#define kunmap_atomic(addr, idx) do { pagefault_enable(); } while (0)
#define kmap_atomic_pfn(pfn, idx) kmap_atomic(pfn_to_page(pfn), (idx))
#define kmap_atomic_to_page(ptr) virt_to_page(ptr)
Expand Down

0 comments on commit 44e1dac

Please sign in to comment.