mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
devfreq: memlat: Change number of array elements for holding core_stats
Memlat driver allocates as many array elements in core_stats array as many possible cpus While when any of core is not available in between we need to consider what is first and last cpu in possible mask, accordingly initialize the core_stats array. Change-Id: I26420d2b061b712f94c3e496cff12811ea4a678a Signed-off-by: Avaneesh Kumar Dwivedi <quic_akdwived@quicinc.com>
This commit is contained in:
parent
a845583f32
commit
3ebdc2df40
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