max_core is indexed by a socket id, not the processor_id.
Not in the patch: The max_core array can be realloc()'ed to reduce the
size to (max_socket + 1).
By the way, if the PLPA_NAME(arg) macro will ever evaluate to arg, than
there will be compiler errors because of redefinition of the max_core symbol.
Bert Wesarg
|