| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| 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") | 
| 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 | 
| 227 | Return 0 | 
| 229 | out_err : | 
| 231 | Return ret | 
| Name | Describe | 
|---|---|
| rdtgroup_pseudo_lock_create | dtgroup_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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |