Skip to content

Commit

Permalink
[PATCH] ppc64: Mark kernel hptes dirty
Browse files Browse the repository at this point in the history
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 <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed Jun 22, 2005
1 parent ac5b33c commit 515bae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/mm/hash_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 515bae9

Please sign in to comment.