diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2018-05-22 14:42:37 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 20:43:37 +1000 |
commit | 25af86b2aeb60dd52bd18a875124490e23bd4515 (patch) | |
tree | 0da13f3338cd72d753a1debda8ae0e5082f91f72 /arch/powerpc/include | |
parent | e7a8ac433845aa86f39bf404ae4b7709f21c7d70 (diff) | |
download | talos-obmc-linux-25af86b2aeb60dd52bd18a875124490e23bd4515.tar.gz talos-obmc-linux-25af86b2aeb60dd52bd18a875124490e23bd4515.zip |
powerpc/perf: Unregister thread-imc if core-imc not supported
Since thread-imc internally use the core-imc hardware infrastructure
and is depended on it, having thread-imc in the kernel in the
absence of core-imc is trivial. Patch disables thread-imc, if
core-imc is not registered.
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/imc-pmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/imc-pmu.h b/arch/powerpc/include/asm/imc-pmu.h index d76cb11be3e3..69f516ecb2fd 100644 --- a/arch/powerpc/include/asm/imc-pmu.h +++ b/arch/powerpc/include/asm/imc-pmu.h @@ -128,4 +128,5 @@ extern int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id); extern void thread_imc_disable(void); extern int get_max_nest_dev(void); +extern void unregister_thread_imc(void); #endif /* __ASM_POWERPC_IMC_PMU_H */ |