]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf04a5171a4cec8ff0714fabfa404e6690f98f1f0
tree1703905a2d69eba4db5cc13cd51e62292b3ec505
parentc7620a92e061ef873ef8d63249a2a128c0b63910
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]