diff options
author | Robert Jennings <rcj@linux.vnet.ibm.com> | 2012-05-10 04:55:49 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-05-13 20:30:13 -0400 |
commit | 404e32e4a8f68d218b73b7db7bb831d887ab6046 (patch) | |
tree | d079a7925e339ecbaea4cbd1f5091fbe42347cd0 /arch/powerpc/kernel/prom_init.c | |
parent | 8b6ee04067310a6397476f05f06e52dabd8b0bb6 (diff) |
powerpc/pseries: Support lower minimum entitlement for virtual processors
This patch changes the architecture vector to advertise support for a
lower minimum virtual processor entitled capacity. The default
minimum without this patch is 10%, this patch specifies 1%.
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/prom_init.c')
-rw-r--r-- | arch/powerpc/kernel/prom_init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 99860273211b..2acf54ae8491 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -680,6 +680,9 @@ static void __init early_cmdline_parse(void) | |||
680 | #define OV3_VMX 0x40 /* VMX/Altivec */ | 680 | #define OV3_VMX 0x40 /* VMX/Altivec */ |
681 | #define OV3_DFP 0x20 /* decimal FP */ | 681 | #define OV3_DFP 0x20 /* decimal FP */ |
682 | 682 | ||
683 | /* Option vector 4: IBM PAPR implementation */ | ||
684 | #define OV4_MIN_ENT_CAP 0x01 /* minimum VP entitled capacity */ | ||
685 | |||
683 | /* Option vector 5: PAPR/OF options supported */ | 686 | /* Option vector 5: PAPR/OF options supported */ |
684 | #define OV5_LPAR 0x80 /* logical partitioning supported */ | 687 | #define OV5_LPAR 0x80 /* logical partitioning supported */ |
685 | #define OV5_SPLPAR 0x40 /* shared-processor LPAR supported */ | 688 | #define OV5_SPLPAR 0x40 /* shared-processor LPAR supported */ |
@@ -744,8 +747,9 @@ static unsigned char ibm_architecture_vec[] = { | |||
744 | OV3_FP | OV3_VMX | OV3_DFP, | 747 | OV3_FP | OV3_VMX | OV3_DFP, |
745 | 748 | ||
746 | /* option vector 4: IBM PAPR implementation */ | 749 | /* option vector 4: IBM PAPR implementation */ |
747 | 2 - 2, /* length */ | 750 | 3 - 2, /* length */ |
748 | 0, /* don't halt */ | 751 | 0, /* don't halt */ |
752 | OV4_MIN_ENT_CAP, /* minimum VP entitled capacity */ | ||
749 | 753 | ||
750 | /* option vector 5: PAPR/OF options */ | 754 | /* option vector 5: PAPR/OF options */ |
751 | 13 - 2, /* length */ | 755 | 13 - 2, /* length */ |
@@ -762,7 +766,7 @@ static unsigned char ibm_architecture_vec[] = { | |||
762 | * must match by the macro below. Update the definition if | 766 | * must match by the macro below. Update the definition if |
763 | * the structure layout changes. | 767 | * the structure layout changes. |
764 | */ | 768 | */ |
765 | #define IBM_ARCH_VEC_NRCORES_OFFSET 100 | 769 | #define IBM_ARCH_VEC_NRCORES_OFFSET 101 |
766 | W(NR_CPUS), /* number of cores supported */ | 770 | W(NR_CPUS), /* number of cores supported */ |
767 | 771 | ||
768 | /* option vector 6: IBM PAPR hints */ | 772 | /* option vector 6: IBM PAPR hints */ |