Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139999
b: refs/heads/master
c: 3688e07
h: refs/heads/master
i:
  139997: ae87a14
  139995: 84be81f
  139991: ba70838
  139983: f03ddde
  139967: 4da5d68
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed Apr 3, 2009
1 parent 428edd0 commit 4e33444
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 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: c54c4dec61eec88de8260a00260fe89aa538f267
refs/heads/master: 3688e07f83d81941c4a8b20e29602c6d0c883539
29 changes: 14 additions & 15 deletions trunk/include/linux/highmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,21 @@ static inline void flush_kernel_dcache_page(struct page *page)
}
#endif

#ifdef CONFIG_HIGHMEM
#include <asm/kmap_types.h>

#if defined(CONFIG_DEBUG_HIGHMEM) && defined(CONFIG_TRACE_IRQFLAGS_SUPPORT)

void debug_kmap_atomic(enum km_type type);

#else

static inline void debug_kmap_atomic(enum km_type type)
{
}

#endif

#ifdef CONFIG_HIGHMEM
#include <asm/highmem.h>

/* declarations for linux/mm/highmem.c */
Expand All @@ -44,8 +57,6 @@ static inline void *kmap(struct page *page)

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

#include <asm/kmap_types.h>

static inline void *kmap_atomic(struct page *page, enum km_type idx)
{
pagefault_disable();
Expand Down Expand Up @@ -187,16 +198,4 @@ static inline void copy_highpage(struct page *to, struct page *from)
kunmap_atomic(vto, KM_USER1);
}

#if defined(CONFIG_DEBUG_HIGHMEM) && defined(CONFIG_TRACE_IRQFLAGS_SUPPORT)

void debug_kmap_atomic(enum km_type type);

#else

static inline void debug_kmap_atomic(enum km_type type)
{
}

#endif

#endif /* _LINUX_HIGHMEM_H */

0 comments on commit 4e33444

Please sign in to comment.