Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-28 08:13:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int pseudo_lock_cstates_constrain(struct pseudo_lock_region *plr)

Type:int

Parameter:

TypeParameterName
struct pseudo_lock_region *plr
207  pm_req = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
208  If Not pm_req Then
209  rdt_last_cmd_puts("Failure to allocate memory for PM QoS\n")
210  ret = -ENOMEM
211  Go to out_err
213  ret = dev_pm_qos_add_request(get_cpu_device(cpu), & req, DEV_PM_QOS_RESUME_LATENCY, 30)
217  If ret < 0 Then
218  rdt_last_cmd_printf("Failed to add latency req CPU%d\n", cpu)
220  free previously allocated memory
221  ret = -1
222  Go to out_err
224  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
227  Return 0
229  out_err :
230  pseudo_lock_cstates_relax(plr)
231  Return ret
Caller
NameDescribe
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