Commit 377bacd1 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Xiaolong Wang
Browse files

powercap: intel_rapl: Replace deprecated CPU-hotplug functions

mainline inclusion
from mainline-v5.15-rc1
commit 5d4c779c
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I92135

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d4c779cb62e676aedc278de910b4bb8ef65a5cc



--------------------------------

The functions get_online_cpus() and put_online_cpus() have been
deprecated during the CPU hotplug rework. They map directly to
cpus_read_lock() and cpus_read_unlock().

Replace deprecated CPU-hotplug functions with the official version.
The behavior remains unchanged.

Intel-SIG: commit 5d4c779c powercap: intel_rapl: Replace deprecated CPU-hotplug functions
Backport a dependency of Intel RAPL driver support on TPMI.

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
[ Xiaolong Wang: amend commit log ]
Signed-off-by: default avatarXiaolong Wang <xiaolong.wang@intel.com>
parent 26a10f7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment