Skip to content
Commit e4fb01c6 authored by Sean Kyer's avatar Sean Kyer Committed by Henrik Brix Andersen
Browse files

cpu_freq: Add CPU Frequency Scaling subsystem



Add a CPU frequency scaling subsystem, allowing a policy
algorithm to control the frequency of a given SoC/MCU
automatically at runtime.

Implement a basic, "on-demand" policy algorithm which
iterates through the P-states supported by the SoC and
selects the first P-state where it's trigger threshold is
less than the CPU load.

The CPU frequency scaling subsystem does not currently
support SMP. The CPU load measurement can be made to support
SMP since statistics are measured from the scheduler.

Co-authored-by: default avatarEric Hay <Eric.Hay@analog.com>
Signed-off-by: default avatarSean Kyer <Sean.Kyer@analog.com>
parent 73ce0324
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment