Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_cache_qos_cfg

Proto:static int set_cache_qos_cfg(int level, bool enable)

Type:int

Parameter:

TypeParameterName
intlevel
boolenable
1738  void( * update)(void * arg)
1744  If level == RDT_RESOURCE_L3 Then update = l3_qos_cfg_update
1746  Else if level == RDT_RESOURCE_L2 Then update = l2_qos_cfg_update
1748  Else Return -EINVAL
1751  If Not zalloc_cpumask_var( & cpu_mask, GFP_KERNEL) Then Return -ENOMEM
1754  r_l = rdt_resources_all[level]
1757  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
1759  cpu = get_cpu()
1761  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then update( & enable)
1764  smp_call_function_many(cpu_mask, update, & enable, 1)
1765  put_cpu()
1767  free_cpumask_var(cpu_mask)
1769  Return 0
Caller
NameDescribe
cdp_enable
cdp_disable