On 15/10/2021 16:45, Lukasz Luba wrote:
+#define arch_thermal_pressure_update topology_thermal_pressure_update
s/thermal_pressure_update/update_thermal_pressure ?
The scheme seems to be {arch|topology}_*foo*_thermal_pressure
But ...
+void topology_thermal_pressure_update(const struct cpumask *cpus,
+ unsigned long capped_freq)
+{
... why not just s/unsigned long th_pressure/unsigned long capped_freq
in existing topology_set_thermal_pressure() and move code the
frequency/capacity conversion in there? The patch set will become
considerably smaller.
void topology_set_thermal_pressure(const struct cpumask *cpus,
- unsigned long th_pressure)
+ unsigned long capped_freq)
EXPORT_SYMBOL_GPL(topology_set_thermal_pressure);
And a user like [drivers/thermal/cpufreq_cooling.c] can call
arch_set_thermal_pressure(cpus, frequency).
[...]