powerpc/pseries: Update arch vector to indicate support for CMO

Update the architecture vector to indicate that Cooperative Memory
Overcommitment is supported if CONFIG_PPC_SMLPAR is set.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Nathan Fontenot and committed by
Benjamin Herrenschmidt
8391e42a 39c1ffec

+8 -1
+8 -1
arch/powerpc/kernel/prom_init.c
··· 643 643 #else 644 644 #define OV5_MSI 0x00 645 645 #endif /* CONFIG_PCI_MSI */ 646 + #ifdef CONFIG_PPC_SMLPAR 647 + #define OV5_CMO 0x80 /* Cooperative Memory Overcommitment */ 648 + #else 649 + #define OV5_CMO 0x00 650 + #endif 646 651 647 652 /* 648 653 * The architecture vector has an array of PVR mask/value pairs, ··· 692 687 0, /* don't halt */ 693 688 694 689 /* option vector 5: PAPR/OF options */ 695 - 3 - 2, /* length */ 690 + 5 - 2, /* length */ 696 691 0, /* don't ignore, don't halt */ 697 692 OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | 698 693 OV5_DONATE_DEDICATE_CPU | OV5_MSI, 694 + 0, 695 + OV5_CMO, 699 696 }; 700 697 701 698 /* Old method - ELF header with PT_NOTE sections */