occ: Reduce stack usage in add_cpu_pstate_properties()
occ: Reduce stack usage in add_cpu_pstate_properties()

This function uses int arrays from stack that pushes stack usage to
more than 2kB. Reduce stack usage by allocating memory.

Ben H's stack check compile option exposed this usage count:

hw/occ.c: In function 'add_cpu_pstate_properties':
hw/occ.c:187:1: warning: the frame size of 2064 bytes is larger than
2048 bytes [-Wframe-larger-than=]

Signed-off-by: Vaidyanathan Srinivasan <c012decff9dffda4c10860ab2ba9eb53320d90bc@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

neelegup/skiboot,jk-ozlabs/skiboot,cyrilbur-ibm/skiboot,stewart-ibm/skiboot,qemu/skiboot,neelegup/skiboot,mikey/skiboot,apopple/skiboot,qemu/skiboot,legoater/skiboot,mikey/skiboot,qemu/skiboot,legoater/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,shenki/skiboot,cyrilbur-ibm/skiboot,qemu/skiboot,legoater/skiboot,ddstreet/skiboot,qemu/skiboot,shenki/skiboot,apopple/skiboot,ddstreet/skiboot,csmart/skiboot,stewart-ibm/skiboot,shenki/skiboot,neelegup/skiboot,open-power/skiboot,mikey/skiboot,open-power/skiboot,shenki/skiboot,legoater/skiboot,ddstreet/skiboot,jk-ozlabs/skiboot,cyrilbur-ibm/skiboot,csmart/skiboot,apopple/skiboot,jk-ozlabs/skiboot,csmart/skiboot