Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89482
b: refs/heads/master
c: 273988f
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Tony Luck committed Apr 9, 2008
1 parent 5e46e00 commit aab2b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 5cf1f7cef1c67b5c81736f00e81a2890e07041b9
refs/heads/master: 273988fa4dffd1b1e6deb3de18b979a44e9d8732
8 changes: 1 addition & 7 deletions trunk/arch/ia64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,14 @@ __ia64_sync_icache_dcache (pte_t pte)
{
unsigned long addr;
struct page *page;
unsigned long order;

page = pte_page(pte);
addr = (unsigned long) page_address(page);

if (test_bit(PG_arch_1, &page->flags))
return; /* i-cache is already coherent with d-cache */

if (PageCompound(page)) {
order = compound_order(page);
flush_icache_range(addr, addr + (1UL << order << PAGE_SHIFT));
}
else
flush_icache_range(addr, addr + PAGE_SIZE);
flush_icache_range(addr, addr + (PAGE_SIZE << compound_order(page)));
set_bit(PG_arch_1, &page->flags); /* mark page as clean */
}

Expand Down

0 comments on commit aab2b69

Please sign in to comment.