occ: Filter out entries from Pmin to Pmax in pstate table
occ: Filter out entries from Pmin to Pmax in pstate table

Parse the entire pstate table provided by OCC and filter out the
entries that are outside the Pmax and Pmin limits. This can
occur when turbo mode is disabled and OCC limits the Pmax to
nominal pstate, but includes turbo pstates in the pstate table.
We end up with wrong pstates in such cases if we do not parse
the pstate table to filter out the correct range.

Signed-off-by: Shilpasri G Bhat <d5e9f39adad3a1ae2ac6557cc4305369c013b729@linux.vnet.ibm.com>
Acked-by: Jeremy Kerr <68a658b44bbaefab3ef5cd231967195fc0ff9d69@ozlabs.org>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

open-power/skiboot,qemu/skiboot,qemu/skiboot,shenki/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,mikey/skiboot,qemu/skiboot,legoater/skiboot,mikey/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,legoater/skiboot,stewart-ibm/skiboot,shenki/skiboot,mikey/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,stewart-ibm/skiboot