cpu_freq[i] is initialized after setup_counters is called, therefore setup_counters will always fails if the system is in SMT 2 or SMT off. This patch makes setup_counters verify directly if the cpu is online or not.
cpu_freq[i] is initialized after setup_counters is called, therefore
setup_counters will always fails if the system is in SMT 2 or SMT off.
This patch makes setup_counters verify directly if the cpu is online or
not.

Signed-off-by: Murillo Fernandes Bernardes <782938a065463fddaaab408552acb91f28c16626@br.ibm.com>

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