x86: change_page_attr_clear fix
authorHuang, Ying <ying.huang@intel.com>
Thu, 31 Jan 2008 21:05:43 +0000 (22:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Jan 2008 21:05:43 +0000 (22:05 +0100)
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>
arch/x86/mm/pageattr.c

index 1cc6607eacb072c64c789ccdaeffa4f97330a804..e297bd65e513308fd1c2a26ee59126c8c077e04b 100644 (file)
@@ -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)