Commit 2bfbee12 authored by Lifeng Zheng's avatar Lifeng Zheng Committed by Greg Kroah-Hartman
Browse files

cpufreq: Initialize cpufreq-based frequency-invariance later



[ Upstream commit 2a6c7273 ]

The cpufreq-based invariance is enabled in cpufreq_register_driver(),
but never disabled after registration fails. Move the invariance
initialization to where all other initializations have been successfully
done to solve this problem.

Fixes: 874f6353 ("cpufreq: report whether cpufreq supports Frequency Invariance (FI)")
Signed-off-by: default avatarLifeng Zheng <zhenglifeng1@huawei.com>
Link: https://patch.msgid.link/20250709104145.2348017-2-zhenglifeng1@huawei.com


[ rjw: New subject ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cccdedfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment