Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269826
b: refs/heads/master
c: 24dd85f
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter authored and Keith Packard committed Oct 20, 2011
1 parent 29eefca commit e5521dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ffc02468145ac92b1b88896e0f18bd7bcd52591
refs/heads/master: 24dd85ff723f142093f44244764b9b5c152235b8
4 changes: 4 additions & 0 deletions trunk/include/linux/io-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ io_mapping_unmap(void __iomem *vaddr)

#else

#include <linux/uaccess.h>

/* this struct isn't actually defined anywhere */
struct io_mapping;

Expand All @@ -138,12 +140,14 @@ static inline void __iomem *
io_mapping_map_atomic_wc(struct io_mapping *mapping,
unsigned long offset)
{
pagefault_disable();
return ((char __force __iomem *) mapping) + offset;
}

static inline void
io_mapping_unmap_atomic(void __iomem *vaddr)
{
pagefault_enable();
}

/* Non-atomic map/unmap */
Expand Down

0 comments on commit e5521dd

Please sign in to comment.