aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorHuang, Ying <ying.huang@intel.com>2008-01-31 16:05:43 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-31 16:05:43 -0500
commit5827040df095d8dd6b5ca155dc4bfb5bafcb6ca2 (patch)
tree5cecd44484c96240be98e8031fe5afdf52dc8d88 /arch/x86
parentc1666e663d8443f57c1c6b0acac70c3fbaea9014 (diff)
x86: change_page_attr_clear fix
This patch replaces __change_page_attr_set_clr() with change_page_attr_set_clr() in change_page_attr_clear() to flush the TLB/cache properly. Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/mm/pageattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 1cc6607eacb0..e297bd65e513 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -399,8 +399,7 @@ static inline int change_page_attr_set(unsigned long addr, int numpages,
399static inline int change_page_attr_clear(unsigned long addr, int numpages, 399static inline int change_page_attr_clear(unsigned long addr, int numpages,
400 pgprot_t mask) 400 pgprot_t mask)
401{ 401{
402 return __change_page_attr_set_clr(addr, numpages, __pgprot(0), mask); 402 return change_page_attr_set_clr(addr, numpages, __pgprot(0), mask);
403
404} 403}
405 404
406int set_memory_uc(unsigned long addr, int numpages) 405int set_memory_uc(unsigned long addr, int numpages)