powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails
authorLi Zhong <zhong@linux.vnet.ibm.com>
Mon, 13 Apr 2015 07:48:37 +0000 (15:48 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Apr 2015 03:19:15 +0000 (13:19 +1000)
As Michael pointed out, create_events_from_catalog() fails when we
either have:
 - a kernel bug
 - some sort of hypervisor misconfiguration
 - ENOMEM

In all the above cases, we can also fail 24x7 initcall.

For hypervisor errors, EIO is used so there is something reported
in dmesg.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

No differences found