diff options
| author | Lifeng Zheng <zhenglifeng1@huawei.com> | 2025-11-19 16:13:55 +0800 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-01-05 21:11:48 +0000 |
| commit | 4221504c4328d4d9e57962bf530fa52913591139 (patch) | |
| tree | 7a640b4a4a83352d0ea0b062ad60491dba417104 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | af15bc259e260cbe5221c220d56a716b6facf155 (diff) | |
cpufreq: Add new helper function returning cpufreq policy
cpufreq_cpu_get_raw() gets cpufreq policy only if the CPU is in
policy->cpus mask, which means the CPU is already online. But in some
cases, the policy is needed before the CPU is added to cpus mask. Add a
function to get the policy in these cases.
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Acked-by: Beata Michalska <beata.michalska@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
