[PATCH v2] x86/AMD: Fix Socket ID for LLC topology for AMD Fam17h systems

2016-09-02 Thread Yazen Ghannam
Socket ID is an unsigned value and starts at 0. Subtracting 1 from it is incorrect and the result will underflow if socket_id=0. Remove substraction when extracting socket_id from c->apicid. Signed-off-by: Yazen Ghannam --- Link:

[PATCH v2] x86/AMD: Fix Socket ID for LLC topology for AMD Fam17h systems

2016-09-02 Thread Yazen Ghannam
Socket ID is an unsigned value and starts at 0. Subtracting 1 from it is incorrect and the result will underflow if socket_id=0. Remove substraction when extracting socket_id from c->apicid. Signed-off-by: Yazen Ghannam --- Link: