diff options
author | Hugh Dickins <hugh@veritas.com> | 2006-07-26 16:39:49 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-07-26 19:58:39 -0400 |
commit | 804af2cf6e7af31d2e664b54e657dddd9b531dbd (patch) | |
tree | a9127236c76953ddc627b8133aae208651e206fd /mm | |
parent | 64821324ca49f24be1a66f2f432108f96a24e596 (diff) |
[AGPGART] remove private page protection map
AGP keeps its own copy of the protection_map, upcoming DRM changes will
also require access to this map from modules.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mmap.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -60,6 +60,13 @@ pgprot_t protection_map[16] = { | |||
60 | __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 | 60 | __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 |
61 | }; | 61 | }; |
62 | 62 | ||
63 | pgprot_t vm_get_page_prot(unsigned long vm_flags) | ||
64 | { | ||
65 | return protection_map[vm_flags & | ||
66 | (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]; | ||
67 | } | ||
68 | EXPORT_SYMBOL(vm_get_page_prot); | ||
69 | |||
63 | int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */ | 70 | int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */ |
64 | int sysctl_overcommit_ratio = 50; /* default is 50% */ | 71 | int sysctl_overcommit_ratio = 50; /* default is 50% */ |
65 | int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; | 72 | int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; |