Sound Open Firmware
Loading...
Searching...
No Matches
cpu-clk-manager.h File Reference

CPU clk manager definition. More...

Include dependency graph for cpu-clk-manager.h:

Go to the source code of this file.

Data Structures

struct  kcps_budget_data
 CPS budget data. More...

Functions

int core_kcps_adjust (int core, int kcps_delta)
 Declare KCPS usage on core.
int core_kcps_get (int core)
 Get KCPS usage on core.
int kcps_budget_init (void)
 Init KCPS budget mechanism.

Detailed Description

CPU clk manager definition.

Author
Krzysztof Frydryk krzys.nosp@m.ztof.nosp@m.x.fry.nosp@m.dryk.nosp@m.@inte.nosp@m.l.co.nosp@m.m

Function Documentation

◆ core_kcps_adjust()

int core_kcps_adjust ( int core,
int kcps_delta )

Declare KCPS usage on core.

Declare KCPS (kilo cycles per second) CPU usage on core and adjust CPU clock according to sum of declared consumptions.

Declared consumption can be negative in case of freeing CPS.

Parameters
coreThe core to which consumption should be pinned
kcps_deltadeclared usage. Can be negative.

◆ core_kcps_get()

int core_kcps_get ( int core)

Get KCPS usage on core.

Get declared KCPS usage on core

Parameters
coreThe core which consumption should be returned

◆ kcps_budget_init()

int kcps_budget_init ( void )

Init KCPS budget mechanism.