Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pm_qos_update_flags - Update a set of PM QoS flags

Proto:bool pm_qos_update_flags(struct pm_qos_flags *pqf, struct pm_qos_flags_request *req, enum pm_qos_req_action action, s32 val)

Type:bool

Parameter:

TypeParameterName
struct pm_qos_flags *pqf
struct pm_qos_flags_request *req
enum pm_qos_req_actionaction
s32val
302  spin_lock_irqsave( & pm_qos_lock, irqflags)
304  prev_value = If list_empty - tests whether a list is empty*@head: the list to test. Then 0 Else Do not change to 64 bit
307  Case action == PM_QOS_REMOVE_REQ
308  pm_qos_flags_remove_req - Remove device PM QoS flags request.*@pqf: Device PM QoS flags set to remove the request from.*@req: Request to remove from the set.
309  Break
310  Case action == Update an existing request
311  pm_qos_flags_remove_req - Remove device PM QoS flags request.*@pqf: Device PM QoS flags set to remove the request from.*@req: Request to remove from the set.
313  Case action == Add a new request
314  Do not change to 64 bit = val
315  Initialization list head
316  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
317  Do not change to 64 bit |= val
318  Break
319  Default
324  curr_value = If list_empty - tests whether a list is empty*@head: the list to test. Then 0 Else Do not change to 64 bit
326  spin_unlock_irqrestore( & pm_qos_lock, irqflags)
328  trace_pm_qos_update_flags(action, prev_value, curr_value)
329  Return prev_value != curr_value