Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143510
b: refs/heads/master
c: 3869c4a
h: refs/heads/master
v: v3
  • Loading branch information
venkatesh.pallipadi@intel.com authored and Ingo Molnar committed Apr 10, 2009
1 parent eb8ecfb commit f5e5e97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9fa3ab390abfc8b49fc0dd7c845b0ad224ec429f
refs/heads/master: 3869c4aa18835c8c61b44bd0f3ace36e9d3b5bd0
9 changes: 8 additions & 1 deletion trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,15 @@ EXPORT_SYMBOL(set_memory_array_uc);

int _set_memory_wc(unsigned long addr, int numpages)
{
return change_page_attr_set(&addr, numpages,
int ret;
ret = change_page_attr_set(&addr, numpages,
__pgprot(_PAGE_CACHE_UC_MINUS), 0);

if (!ret) {
ret = change_page_attr_set(&addr, numpages,
__pgprot(_PAGE_CACHE_WC), 0);
}
return ret;
}

int set_memory_wc(unsigned long addr, int numpages)
Expand Down

0 comments on commit f5e5e97

Please sign in to comment.