mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
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:
parent
3e29197013
commit
6da09a5853
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue