]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 15 Aug 2008 19:09:33 +0000 (05:09 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 18 Aug 2008 04:22:35 +0000 (14:22 +1000)
commit370e4587d0a6bf80a0c421583fe579a13f3d8773
treef56502407decd8e833b6e7cb50b51b3d51ce6150
parent81f14997e8e8a10eb75ca593674d2b0c94129a21
powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages

If the firmware page size used for collaborative memory overcommit
is 4k, but the kernel is using 64k pages, the page loaning is currently
broken as it only marks the first 4k page of each 64k page as loaned.
This fixes this to iterate through each 4k page and mark them all as
loaned/active.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/plpar_wrappers.h