Re: [PATCH V4 4/4] thermal/drivers/cpu_cooling: Rename to cpufreq_cooling

From: Martin Kepplinger
Date: Thu Dec 12 2019 - 02:34:52 EST




On 11.12.19 22:33, Daniel Lezcano wrote:
>
> Hi Martin,
>
> I've a bug in the code.
>
>
> diff --git a/drivers/thermal/cpuidle_cooling.c
> b/drivers/thermal/cpuidle_cooling.c
> index 369c5c613f6b..628ad707f247 100644
> --- a/drivers/thermal/cpuidle_cooling.c
> +++ b/drivers/thermal/cpuidle_cooling.c
> @@ -192,7 +192,7 @@ __init cpuidle_of_cooling_register(struct
> device_node *np,
> goto out_id;
> }
>
> - idle_inject_set_duration(ii_dev, 0, TICK_USEC);
> + idle_inject_set_duration(ii_dev, TICK_USEC, TICK_USEC);
>
> idle_cdev->ii_dev = ii_dev;
>
>
> Let me know if that solves your issue.
>

It does. I now won't heat up over the hot trip point at all. That's what
I was expecting. thanks!

martin