x86: Fix topology detection
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Dec 2017 17:02:50 +0000 (12:02 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Dec 2017 20:22:08 +0000 (15:22 -0500)
commitb718830b1ff27ec72dcb939ddf10f8e193ad03ac
tree1510280758c91a8c36cbb0dfe95d38b3564ac0dd
parentfa96496d73a1d56345c7a1b6382ce0d03f573ecc
x86: Fix topology detection

The main thing is that we were off by one - the is_unique check would
compare us to ourselves, which will always fail.

The end result was that the number of numa nodes was always 0, which turns
off all of the other topology information.  I'm not sure how this ever
worked.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/topology.c