mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
devfreq: memlat: Correct the num_cpus in memlat-mon
Correct the num_cpu's value by subtracting with last mask with first cpu mask. Change-Id: Idcaee05db0e1fb97cd8d7668c7aad1d00c4c54c5 Signed-off-by: Avaneesh Kumar Dwivedi <quic_akdwived@quicinc.com> Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
This commit is contained in:
parent
1294da841d
commit
adea9f6973
1 changed files with 1 additions and 1 deletions
|
|
@ -907,7 +907,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute)
|
|||
}
|
||||
}
|
||||
|
||||
num_cpus = cpumask_weight(&mon->cpus);
|
||||
num_cpus = (cpumask_last(&mon->cpus) - cpumask_first(&mon->cpus)) + 1;
|
||||
|
||||
hw = &mon->hw;
|
||||
hw->of_node = of_parse_phandle(dev->of_node, "qcom,target-dev", 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue