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 <minda.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This commit is contained in:
Minda Chen 2023-03-02 17:16:01 +08:00 committed by Hal Feng
parent 3e29197013
commit 6da09a5853

View file

@ -1114,9 +1114,11 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)
}
pdev->dev.groups = pmu_sbi_groups;
#ifndef CONFIG_ARCH_STARFIVE
ret = cpuhp_state_add_instance(CPUHP_AP_PERF_RISCV_STARTING, &pmu->node);
if (ret)
return ret;
#endif
ret = riscv_pm_pmu_register(pmu);
if (ret)