x86, UV: Fix initialization of max_pnode
authorJack Steiner <steiner@sgi.com>
Fri, 10 Sep 2010 15:08:08 +0000 (10:08 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:07 +0000 (13:27 -0800)
commitdb6e20425552dfa1dccddc691e1889c0ae1902ca
tree46e6677c0f903307930ccd3f0db7a6405182f0c5
parent22aa48f2b54cbf08a622421247ebc2afb97c7dbf
x86, UV: Fix initialization of max_pnode

commit 36ac4b987bea9a95217e1af552252f275ca7fc44 upstream.

Fix calculation of "max_pnode" for systems where the the highest
blade has neither cpus or memory. (And, yes, although rare this
does occur).

Signed-off-by: Jack Steiner <steiner@sgi.com>
LKML-Reference: <20100910150808.GA19802@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/apic/x2apic_uv_x.c