summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/page.h
diff options
context:
space:
mode:
authorRobert Jennings <rcj@linux.vnet.ibm.com>2009-04-15 05:55:32 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-05-21 15:43:58 +1000
commit14f966e79445015cd89d0fa0ceb6b33702e951b6 (patch)
treeb45546523e909b3d0a05df188c7494af3ce94ca1 /arch/powerpc/include/asm/page.h
parentd69a78d7daada190b42269a73daabe32a5e138a6 (diff)
downloadop-kernel-dev-14f966e79445015cd89d0fa0ceb6b33702e951b6.zip
op-kernel-dev-14f966e79445015cd89d0fa0ceb6b33702e951b6.tar.gz
powerpc/pseries: CMO unused page hinting
Adds support for the "unused" page hint which can be used in shared memory partitions to flag pages not in use, which will then be stolen before active pages by the hypervisor when memory needs to be moved to LPARs in need of additional memory. Failure to mark pages as 'unused' makes the LPAR slower to give up unused memory to other partitions. This adds the kernel parameter 'cmo_free_hint' to disable this functionality. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/page.h')
-rw-r--r--arch/powerpc/include/asm/page.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h
index 32cbf16..4940662 100644
--- a/arch/powerpc/include/asm/page.h
+++ b/arch/powerpc/include/asm/page.h
@@ -231,6 +231,11 @@ extern void copy_user_page(void *to, void *from, unsigned long vaddr,
struct page *p);
extern int page_is_ram(unsigned long pfn);
+#ifdef CONFIG_PPC_SMLPAR
+void arch_free_page(struct page *page, int order);
+#define HAVE_ARCH_FREE_PAGE
+#endif
+
struct vm_area_struct;
typedef struct page *pgtable_t;
OpenPOWER on IntegriCloud