[PATCH v5 1/5] arch_topology: validate input frequencies to arch_set_freq_scale()
sudeep.holla at arm.com
Wed Sep 2 09:32:00 EDT 2020
On Tue, Sep 01, 2020 at 09:55:45PM +0100, Ionela Voinescu wrote:
> The current frequency passed to arch_set_freq_scale() could end up
> being 0, signaling an error in setting a new frequency. Also, if the
> maximum frequency in 0, this will result in a division by 0 error.
> Therefore, validate these input values before using them for the
> setting of the frequency scale factor.
> Signed-off-by: Ionela Voinescu <ionela.voinescu at arm.com>
> Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
> Cc: Sudeep Holla <sudeep.holla at arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla at arm.com>
More information about the linux-arm-kernel