edac: cortex_arm64: Conditionally register cti-pmu workaround cpu notifier

The cti-pmu workaround cpu notifier enables the workaround on CPU online.
Check the DT property to ensure that this is required before enabling it.

Change-Id: Id92702fcdc98b99970cad0df46c6832faff78491
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
Rohit Vaswani 2014-09-24 19:05:46 -07:00
parent 0b5fe7577d
commit 281331c1e5
1 changed files with 2 additions and 2 deletions

View File

@ -892,13 +892,13 @@ static int arm64_cpu_erp_probe(struct platform_device *pdev)
drv->nb_pm.notifier_call = arm64_pmu_cpu_pm_notify;
drv->mem_perf_counter = arm64_pmu_get_last_counter();
cpu_pm_register_notifier(&(drv->nb_pm));
drv->nb_cpu.notifier_call = msm_cti_pmu_wa_cpu_notify;
register_cpu_notifier(&drv->nb_cpu);
drv->nb_panic.notifier_call = arm64_erp_panic_notify;
atomic_notifier_chain_register(&panic_notifier_list,
&drv->nb_panic);
arm64_pmu_irq_handled_externally();
if (drv->apply_cti_pmu_wa) {
drv->nb_cpu.notifier_call = msm_cti_pmu_wa_cpu_notify;
register_cpu_notifier(&drv->nb_cpu);
schedule_on_each_cpu(msm_enable_cti_pmu_workaround);
INIT_WORK(&drv->work, msm_enable_cti_pmu_workaround);
}