powerpc/perf: Set PPC_FEATURE2_EBB when we register the power8 PMU
authorMichael Ellerman <michael@ellerman.id.au>
Sat, 13 Jul 2013 02:53:40 +0000 (12:53 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:45 +0000 (14:18 +1000)
commit5d7ead0039b0c9500825b46997896352810efb0b
tree98acff96a45beaf80c065ad519df4b2672b28785
parent97645154a9056106a957905c7836a016e5c89b3b
powerpc/perf: Set PPC_FEATURE2_EBB when we register the power8 PMU

The presence or absence of EBB is advertised to userspace via the presence
or absence of PPC_FEATURE2_EBB in cpu_user_features2.

Because the kernel can be built without PMU support, we should only add
PPC_FEATURE2_EBB to cpu_user_features2 when we successfully register the
power8 PMU support.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/power8-pmu.c