pmcs_per_umc is the UMC counter count from CPUID 0x80000022 EBX divided
by the number of active UMCs in ECX. If ECX is zero, e.g. in a guest
that only reports core counters, loading hwpmc divides by zero. If ECX
has more UMCs than counters, pmcs_per_umc is zero and the UMC row loop
never terminates.
Skip the division when ECX is zero and register no UMC counters when
pmcs_per_umc is zero.
Fixes: f19f44634afd ("pmc: Add support for AMD UMC counters")
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>