Commit 91fafd22 authored by Xuewen Yan's avatar Xuewen Yan Committed by Greg Kroah-Hartman
Browse files

thermal: cpufreq_cooling: Check the policy first in cpufreq_cooling_register()



[ Upstream commit cff89527 ]

Since the policy needs to be accessed first when obtaining cpu devices,
first check whether the policy is legal before this.

Fixes: 5130802d ("thermal: cpu_cooling: Switch to QoS requests for freq limits")
Signed-off-by: default avatarXuewen Yan <xuewen.yan@unisoc.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 81fb3ee2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment