Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354270
b: refs/heads/master
c: 9915518
h: refs/heads/master
v: v3
  • Loading branch information
Minchan Kim authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent f0a9908 commit a8d65dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: e6200964713e381cb19017ccf567a0fb886b9c6c
refs/heads/master: 9915518887e83764269d5b617d01782893877ed3
10 changes: 4 additions & 6 deletions trunk/drivers/staging/zsmalloc/zsmalloc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,9 @@ struct zs_pool {
/*
* By default, zsmalloc uses a copy-based object mapping method to access
* allocations that span two pages. However, if a particular architecture
* 1) Implements local_flush_tlb_kernel_range() and 2) Performs VM mapping
* faster than copying, then it should be added here so that
* USE_PGTABLE_MAPPING is defined. This causes zsmalloc to use page table
* mapping rather than copying
* for object mapping.
* performs VM mapping faster than copying, then it should be added here
* so that USE_PGTABLE_MAPPING is defined. This causes zsmalloc to use
* page table mapping rather than copying for object mapping.
*/
#if defined(CONFIG_ARM)
#define USE_PGTABLE_MAPPING
Expand Down Expand Up @@ -663,7 +661,7 @@ static inline void __zs_unmap_object(struct mapping_area *area,

flush_cache_vunmap(addr, end);
unmap_kernel_range_noflush(addr, PAGE_SIZE * 2);
local_flush_tlb_kernel_range(addr, end);
flush_tlb_kernel_range(addr, end);
}

#else /* USE_PGTABLE_MAPPING */
Expand Down

0 comments on commit a8d65dd

Please sign in to comment.