Skip to content
Commit 1e46e68b authored by Pierre Gondois's avatar Pierre Gondois Committed by Deepak Kumar Mishra
Browse files

cpufreq: CPPC: Add cppc_cpufreq_search_cpu_data



cppc_cpufreq_get_cpu_data() allocates a new struct cppc_cpudata
for the input CPU at each call.

To search the struct associated with a cpu without allocating
a new one, add cppc_cpufreq_search_cpu_data().
Also add an early prototype.

This will be used in a later patch, when generating artificial
performance states to register an artificial Energy Model in the
cppc_cpufreq driver and enable the Energy Aware Scheduler for ACPI
based systems.

Signed-off-by: default avatarPierre Gondois <Pierre.Gondois@arm.com>
parent 3b76aeb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment