Untangle IA64 sync_icache_dcache() page size determination | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
From: Christoph Lameter <clameter@xxxxxxx>
Subject: Untangle IA64 sync_icache_dcache() page size determination
Untangle the chaos of page size determination in this function by
simply using PAGE_SIZE << compound_order().
Cc: linux-ia64@xxxxxxxxxxxxxxx
Cc: tony.luck@xxxxxxxxx
Signed-off-by: Christoph Lameter <clameter@xxxxxxx>
---
arch/ia64/mm/init.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Index: linux-2.6.25-rc5-mm1/arch/ia64/mm/init.c
===================================================================
--- linux-2.6.25-rc5-mm1.orig/arch/ia64/mm/init.c 2008-03-26 20:10:58.396670095 -0700
+++ linux-2.6.25-rc5-mm1/arch/ia64/mm/init.c 2008-03-26 20:11:33.509168639 -0700
@@ -66,12 +66,7 @@ __ia64_sync_icache_dcache (pte_t pte)
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 */
}
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux MIPS Home] [Kernel List] [Sparc Linux] [DCCP] [Linux ARM List] [Linux] [Photo] [Yosemite News] [MIPS Architecture] [Linux SCSI] [Linux x86_64] [Linux Hams] [Site Home]
![]() |