fuchsia.hardware.cpu.ctrl

PROTOCOLS

Device

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

GetPerformanceStateInfo

Returns information about a given performance state for this performance domain.

Request

NameType
state uint32

Response

NameType
result Device_GetPerformanceStateInfo_Result

GetNumLogicalCores

Returns the number of logical cores contained within this performance domain.

Request

NameType

Response

NameType
count uint64

GetLogicalCoreId

Returns a global system-wide core ID for the nth core in this performance domain. index must be a value in the range [0, n) where n is the value returned by GetNumLogicalCores().

Request

NameType
index uint64

Response

NameType
id uint64

STRUCTS

Device_GetPerformanceStateInfo_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

NameTypeDescriptionDefault
info CpuPerformanceStateInfo No default

CpuPerformanceStateInfo

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

A collection of some basic information for a given performance state.

NameTypeDescriptionDefault
frequency_hz int64

Frequency the core is operating at in hertz.

No default
voltage_uv int64 No default

UNIONS

Device_GetPerformanceStateInfo_Result

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

NameTypeDescription
response Device_GetPerformanceStateInfo_Response
err zx/status

CONSTANTS

NameValueTypeDescription
FREQUENCY_UNKNOWN -1 int64

CpuPerformanceStateInfo::frequency_hz and CpuPerformanceStateInfo::voltage_uv are set to this if the frequency and voltage for the given performance state are unknown respectively.

VOLTAGE_UNKNOWN -1 int64