diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-05-26 13:58:58 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-31 17:00:28 +1000 |
commit | 7213b8a5d26c22c9870b5fa35addec728688673c (patch) | |
tree | eabe9ecbf57de61c25b62850779794132ec3f536 /hw/test | |
parent | 41bb3e7cd4eda5371d7cd0310e31357550279ccd (diff) | |
download | skiboot-7213b8a5d26c22c9870b5fa35addec728688673c.zip skiboot-7213b8a5d26c22c9870b5fa35addec728688673c.tar.gz skiboot-7213b8a5d26c22c9870b5fa35addec728688673c.tar.bz2 |
occ: Fix Pstate ordering for P9
In P9 the pstate values are positive. They are continuous set of
unsigned integers [0 to +N] where Pmax is 0 and Pmin is N. The
linear ordering of pstates for P9 has changed compared to P8.
P8 has neagtive pstate values advertised as [0 to -N] where Pmax
is 0 and Pmin is -N. This patch adds helper routines to abstract
pstate comparison with pmax and adds sanity pstate limit checks.
This patch also fixes pstate arithmetic by using labs().
Suggested-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/test')
0 files changed, 0 insertions, 0 deletions