From: Huang, Ying Date: Thu, 31 Jan 2008 21:05:43 +0000 (+0100) Subject: x86: change_page_attr_clear fix X-Git-Tag: v2.6.25-rc1~1128^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5827040df095d8dd6b5ca155dc4bfb5bafcb6ca2;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 1cc6607eacb..e297bd65e51 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, static inline int change_page_attr_clear(unsigned long addr, int numpages, pgprot_t mask) { - return __change_page_attr_set_clr(addr, numpages, __pgprot(0), mask); - + return change_page_attr_set_clr(addr, numpages, __pgprot(0), mask); } int set_memory_uc(unsigned long addr, int numpages)