Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\qos.c Create Date:2022-07-28 09:56:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:q_qos_read_value - Get frequency QoS constraint for a given list.*@qos: Constraints to evaluate.*@type: QoS request type.

Proto:s32 freq_qos_read_value(struct freq_constraints *qos, enum freq_qos_req_type type)

Type:s32

Parameter:

TypeParameterName
struct freq_constraints *qos
enum freq_qos_req_typetype
694  Case type == FREQ_QOS_MIN
695  ret = If IS_ERR_OR_NULL(qos) Then FREQ_QOS_MIN_DEFAULT_VALUE Else pm_qos_read_value( & min_freq)
698  Break
699  Case type == FREQ_QOS_MAX
700  ret = If IS_ERR_OR_NULL(qos) Then FREQ_QOS_MAX_DEFAULT_VALUE Else pm_qos_read_value( & max_freq)
703  Break
704  Default
705  WARN_ON(1)
706  ret = 0
709  Return ret