powerpc/perf: Add a shared interface to get gpci version and capabilities
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 14 Mar 2014 05:00:39 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:30 +0000 (09:48 +1100)
commit2d1b21ad7d1574c7aaa5b9acdb3a02fd37a11c01
tree1703905a2d69eba4db5cc13cd51e62292b3ec505
parenta8b2c4367179e65c2ac945a284ab5d77be161bdf
powerpc/perf: Add a shared interface to get gpci version and capabilities

This exposes a simple way to grab the firmware provided
collect_priveliged, ga, expanded, and lab capability bits. All of these
bits come in from the same gpci request, so we've exposed all of them.

Only the collect_priveliged bit is really used by the hv-gpci/hv-24x7
code, the other bits are simply exposed in sysfs to inform the user.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/hv-common.c [new file with mode: 0644]
arch/powerpc/perf/hv-common.h [new file with mode: 0644]