]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Improve code around unlisted freq check
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 13 Oct 2020 05:12:47 +0000 (10:42 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Oct 2020 14:19:08 +0000 (16:19 +0200)
commit6e6c04997246aa2107fd129d3b85186ec2039384
tree749dbbd533ec789ebf2a48e6dcdf78c2aa7e8fed
parentcd1ce24be9cb983db5311db4b1c343fb00239b7a
cpufreq: Improve code around unlisted freq check

The cpufreq core checks if the frequency programmed by the bootloaders
is not listed in the freq table and programs one from the table in such
a case. This is done only if the driver has set the
CPUFREQ_NEED_INITIAL_FREQ_CHECK flag.

Currently we print two separate messages, with almost the same content,
and do this with a pr_warn() which may be a bit too much as the driver
only asked us to check this as it expected this to be the case. Lower
down the severity of the print message by switching to pr_info() instead
and print a single message only.

Reported-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
Tested-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c