]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Always flush pages in change_page_attr
authorAndi Kleen <ak@suse.de>
Sat, 21 Jul 2007 15:09:51 +0000 (17:09 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:07 +0000 (18:37 -0700)
commitc5569b2a3935a1ef42abe825056258409ef324cf
tree19204282146d83bd8a1eb6d0f816dd15421afd8c
parentff2c00254f08c6a6351345971cfd18fb2a687b38
x86: Always flush pages in change_page_attr

Fix a bug introduced with the CLFLUSH changes: we must always flush pages
changed in cpa(), not just when they are reverted.

Reenable CLFLUSH usage with that now (it was temporarily disabled
for .22)

Add some BUG_ONs

Contains fixes from  Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/mm/pageattr.c
arch/x86_64/mm/pageattr.c