diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-06 12:01:26 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-13 21:50:26 -0400 |
commit | f13c13a005127b5dc5daaca190277a062d946e63 (patch) | |
tree | 0e1085a2eb655f8992590cbce39de0c0f87a5a64 /arch/powerpc/mm | |
parent | 0c69f9c52c474ccd1cade27c7be5f8ab830cdc3a (diff) |
powerpc: Stop using non-architected shared_proc field in lppaca
Although the shared_proc field in the lppaca works today, it is
not architected. A shared processor partition will always have a non
zero yield_count so use that instead. Create a wrapper so users
don't have to know about the details.
In order for older kernels to continue to work on KVM we need
to set the shared_proc bit. While here, remove the ugly bitfield.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 5850798826cd..501e32ca43b4 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -1609,7 +1609,7 @@ int start_topology_update(void) | |||
1609 | #endif | 1609 | #endif |
1610 | } | 1610 | } |
1611 | } else if (firmware_has_feature(FW_FEATURE_VPHN) && | 1611 | } else if (firmware_has_feature(FW_FEATURE_VPHN) && |
1612 | get_lppaca()->shared_proc) { | 1612 | lppaca_shared_proc(get_lppaca())) { |
1613 | if (!vphn_enabled) { | 1613 | if (!vphn_enabled) { |
1614 | prrn_enabled = 0; | 1614 | prrn_enabled = 0; |
1615 | vphn_enabled = 1; | 1615 | vphn_enabled = 1; |