cpufreq: intel_pstate: Get rid of unnecessary READ_ONCE() annotations
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Mar 2024 18:52:06 +0000 (19:52 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 10:56:40 +0000 (12:56 +0200)
commit0f2828e17b6f41b8b345f0031e3fe58529991748
treea2d6fcbe7a1712916b507201029f41d9b24a1eeb
parent432acb219af4edecdd11d360f30b7cc643524db8
cpufreq: intel_pstate: Get rid of unnecessary READ_ONCE() annotations

Drop two redundant checks involving READ_ONCE() from notify_hwp_interrupt()
and make it check hwp_active without READ_ONCE() which is not necessary,
because that variable is only set once during the early initialization of
the driver.

In order to make that clear, annotate hwp_active with __ro_after_init.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c