From: Minda Chen Date: Thu, 2 Mar 2023 09:16:01 +0000 (+0800) Subject: perf:sbi: disable cpu hotplug callback. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3df1ffa634c65a91f3888ff3d9761708ff64e314;p=platform%2Fkernel%2Flinux-starfive.git perf:sbi: disable cpu hotplug callback. register cpu hotplug callback will cause dhrystone and coremark benchmark reduce the scores. this CPU hotplug ops will do in sbi cpu/on and off. So disable this no side effect. Signed-off-by: Minda Chen --- diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c index 15ab3dc68e7a..13902dfd6bcc 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -776,9 +776,11 @@ static int pmu_sbi_device_probe(struct platform_device *pdev) } pdev->dev.groups = pmu_sbi_groups; +#ifndef CONFIG_SOC_STARFIVE ret = cpuhp_state_add_instance(CPUHP_AP_PERF_RISCV_STARTING, &pmu->node); if (ret) return ret; +#endif ret = perf_pmu_register(&pmu->pmu, "cpu", PERF_TYPE_RAW); if (ret) {