hw/imc: Do scoms on the secondary core in fused core mode for core-imc counters
hw/imc: Do scoms on the secondary core in fused core mode for core-imc counters

Core IMC hardware mandates initiating of three scoms to enable or
disable of the Core IMC engine. This has to be done for each core,
and is done in the opal_imc_counters_init().

In fused core mode, the scom has to be done explicitly for the secondary
core to enable or disable core IMC engine in that core.

Do the scom for the secondary core, by calculating the core id from
the incoming cpu id.

This patch is based on the series,
        Initial fused-core support for POWER9 [v5]:
	https://lists.ozlabs.org/pipermail/skiboot/2020-April/016778.html

Signed-off-by: Anju T Sudhakar <e8c8e1f4d2d74e058c71d5cc0f36846d7866f919@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

legoater/skiboot,open-power/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,open-power/skiboot,shenki/skiboot,qemu/skiboot,legoater/skiboot,shenki/skiboot,legoater/skiboot,qemu/skiboot,qemu/skiboot,legoater/skiboot,legoater/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,qemu/skiboot