This patch updates the retrieval of a system attribute, such as smt-snooze-delay or dscr, to handle a valid return value of -1.
This patch updates the retrieval of a system attribute, such as smt-snooze-delay
or dscr, to handle a valid return value of -1.

The value of -1 for smt-snooze-delay is a valid value, where -1 == turning off
the snooze delay.  This updates the code to allow a return code from the
retrieval routine (success/failure) and the new system attribute is returned in
a parameter to the routine.

Signed-off-by: Nathan Fontenot <4b7bfe500077bf77c5456931a34b0b70e36e0bc6@austin.ibm.com>

leitao/powerpc-ibm-utils-debian,kamalesh-babulal/powerpc-utils,mdroth/powerpc-utils,shenki/powerpc-utils,tyreld/powerpc-utils,shenki/powerpc-utils,mdroth/powerpc-utils,mdroth/powerpc-utils,tyreld/powerpc-utils,kamalesh-babulal/powerpc-utils,shenki/powerpc-utils,tyreld/powerpc-utils,kamalesh-babulal/powerpc-utils,leitao/powerpc-ibm-utils-debian,leitao/powerpc-ibm-utils-debian