diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-10 13:30:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-10 13:30:08 -0400 |
commit | 3dd392a407d15250a501fa109cc1f93fee95ef85 (patch) | |
tree | c1faca3fa8bd0f7c8790b3e0887229b4a5a90e8b /arch/x86/mm/pageattr.c | |
parent | b27a43c1e90582facad44de67d02bc9e9f900289 (diff) | |
parent | d403a6484f0341bf0624d17ece46f24f741b6a92 (diff) |
Merge branch 'linus' into x86/pat2
Conflicts:
arch/x86/mm/init_64.c
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-rw-r--r-- | arch/x86/mm/pageattr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index b6374d653d06..a9ec89c3fbca 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -96,7 +96,7 @@ static inline unsigned long highmap_start_pfn(void) | |||
96 | 96 | ||
97 | static inline unsigned long highmap_end_pfn(void) | 97 | static inline unsigned long highmap_end_pfn(void) |
98 | { | 98 | { |
99 | return __pa(round_up((unsigned long)_end, PMD_SIZE)) >> PAGE_SHIFT; | 99 | return __pa(roundup((unsigned long)_end, PMD_SIZE)) >> PAGE_SHIFT; |
100 | } | 100 | } |
101 | 101 | ||
102 | #endif | 102 | #endif |
@@ -981,11 +981,13 @@ int set_memory_ro(unsigned long addr, int numpages) | |||
981 | { | 981 | { |
982 | return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); | 982 | return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); |
983 | } | 983 | } |
984 | EXPORT_SYMBOL_GPL(set_memory_ro); | ||
984 | 985 | ||
985 | int set_memory_rw(unsigned long addr, int numpages) | 986 | int set_memory_rw(unsigned long addr, int numpages) |
986 | { | 987 | { |
987 | return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); | 988 | return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); |
988 | } | 989 | } |
990 | EXPORT_SYMBOL_GPL(set_memory_rw); | ||
989 | 991 | ||
990 | int set_memory_np(unsigned long addr, int numpages) | 992 | int set_memory_np(unsigned long addr, int numpages) |
991 | { | 993 | { |