diff options
author | venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com> | 2008-03-18 20:00:18 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:19 -0400 |
commit | 1219333dfdd488e85f08cf07881b8bc63cf92f21 (patch) | |
tree | 4ada0350f450d84b5ce908fff7d292e4848b5c18 /include/asm-x86 | |
parent | d7677d4034f040f4ce565713e0b83a31cc26f23e (diff) |
x86: PAT use reserve free memtype in set_memory_uc
Use reserve_memtype and free_memtype interfaces in set_memory_uc/set_memory_wb
interfaces to avoid aliasing.
Usage model of set_memory_uc and set_memory_wb is for RAM memory and users
will first call set_memory_uc and call set_memory_wb after use to reset the
attribute.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/cacheflush.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/cacheflush.h b/include/asm-x86/cacheflush.h index 5396c212d8c0..5676fba10a09 100644 --- a/include/asm-x86/cacheflush.h +++ b/include/asm-x86/cacheflush.h | |||
@@ -34,6 +34,8 @@ int set_pages_nx(struct page *page, int numpages); | |||
34 | int set_pages_ro(struct page *page, int numpages); | 34 | int set_pages_ro(struct page *page, int numpages); |
35 | int set_pages_rw(struct page *page, int numpages); | 35 | int set_pages_rw(struct page *page, int numpages); |
36 | 36 | ||
37 | int _set_memory_uc(unsigned long addr, int numpages); | ||
38 | int _set_memory_wb(unsigned long addr, int numpages); | ||
37 | int set_memory_uc(unsigned long addr, int numpages); | 39 | int set_memory_uc(unsigned long addr, int numpages); |
38 | int set_memory_wb(unsigned long addr, int numpages); | 40 | int set_memory_wb(unsigned long addr, int numpages); |
39 | int set_memory_x(unsigned long addr, int numpages); | 41 | int set_memory_x(unsigned long addr, int numpages); |