函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-27 09:13:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pseudo_lock_cstates_constrain - Restrict cores from entering C6* To prevent the cache from being affected by power management entering* C6 has to be avoided

函数原型:static int pseudo_lock_cstates_constrain(struct pseudo_lock_region *plr)

返回类型:int

参数:

类型参数名称
struct pseudo_lock_region *plr
207  pm_req等于分配内存并置零
208  如果非pm_req
209  rdt_last_cmd_puts("Failure to allocate memory for PM QoS\n")
210  ret等于负ENOMEM
211  转到:out_err
213  ret等于dev_pm_qos_add_request(get_cpu_device(cpu), & req, DEV_PM_QOS_RESUME_LATENCY, 30)
217  如果ret小于0则
218  rdt_last_cmd_printf("Failed to add latency req CPU%d\n", cpu)
220  释放内存
221  ret等于负1
222  转到:out_err
224  添加链表项
227  返回:0
229  out_err :
230  pseudo_lock_cstates_relax(plr)
231  返回:ret
调用者
名称描述
rdtgroup_pseudo_lock_createdtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked