mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
PM / devfreq: memlat: add support for shared core-dev tables
A core-dev table is explicity defined in each memlat device today. However, some devices may want to share the same core-dev table so add support for parsing a shared core-dev table that can be used across multiple memlat devices. Change-Id: I5ee0d439c199a6414d2adaeed8328f3dc99b2a84 Signed-off-by: Amir Vajid <[email protected]>
This commit is contained in:
parent
d5fb75a05d
commit
ed7a74e813
1 changed files with 3 additions and 0 deletions
|
|
@ -489,6 +489,9 @@ static struct memlat_node *register_common(struct device *dev,
|
|||
if (hw->get_child_of_node)
|
||||
of_node = hw->get_child_of_node(dev);
|
||||
|
||||
if (of_parse_phandle(of_node, "qcom,core-dev-table", 0))
|
||||
of_node = of_parse_phandle(of_node, "qcom,core-dev-table", 0);
|
||||
|
||||
hw->freq_map = init_core_dev_map(dev, of_node, "qcom,core-dev-table");
|
||||
|
||||
if (!hw->freq_map) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue