From: Anton Blanchard Date: Wed, 22 Jun 2005 00:15:55 +0000 (-0700) Subject: [PATCH] ppc64: Mark kernel hptes dirty X-Git-Tag: v2.6.13-rc4~130^2~202^2~87 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=515bae9cdc6a78eda0879e1f158056d73ec808b7;p=linux-2.6-omap-h63xx.git [PATCH] ppc64: Mark kernel hptes dirty We dont use the hardware referenced and changed bits and setting them early avoids a store to memory. We already do this for userspace hptes but not kernel ones. Do it. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/ppc64/mm/hash_utils.c b/arch/ppc64/mm/hash_utils.c index 87d0525f56f..1647b1c6f28 100644 --- a/arch/ppc64/mm/hash_utils.c +++ b/arch/ppc64/mm/hash_utils.c @@ -195,7 +195,7 @@ void __init htab_initialize(void) memset((void *)table, 0, htab_size_bytes); } - mode_rw = _PAGE_ACCESSED | _PAGE_COHERENT | PP_RWXX; + mode_rw = _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_COHERENT | PP_RWXX; /* On U3 based machines, we need to reserve the DART area and * _NOT_ map it to avoid cache paradoxes as it's remapped non