ANDROID: arch_topology: Export symbol for thermal pressure notification
Vendor cooling device driver need
arch_set_thermal_pressure/topology_set_thermal_pressure to notify
scheduler for thermal limit change.
Test: boot and check trace
Bug: 172387671
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I777cb652a98cb4ca457ccdc9a32300aae6c2b37f
(cherry picked from commit fb06869994d6f7efc411230c067aee7fb3bb25ac)
Signed-off-by: Will McVicker <willmcvicker@google.com>
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
index 5512b72..78069d4 100644
--- a/drivers/base/arch_topology.c
+++ b/drivers/base/arch_topology.c
@@ -77,6 +77,7 @@ void topology_set_thermal_pressure(const struct cpumask *cpus,
for_each_cpu(cpu, cpus)
WRITE_ONCE(per_cpu(thermal_pressure, cpu), th_pressure);
}
+EXPORT_SYMBOL_GPL(topology_set_thermal_pressure);
static ssize_t cpu_capacity_show(struct device *dev,
struct device_attribute *attr,