Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_rdt_alloc_resources

Proto:static __init bool get_rdt_alloc_resources(void)

Type:bool

Parameter:Nothing

837  bool ret = false
839  If Global boolean for rdt_alloc which is true if any* resource allocation is enabled. Then Return true
842  If Not boot_cpu_has(Resource Director Technology Allocation ) Then Return false
845  If rdt_cpu_has(Cache Allocation Technology L3 ) Then
846  rdt_get_cache_alloc_cfg(1, & rdt_resources_all[RDT_RESOURCE_L3])
847  If rdt_cpu_has(Code and Data Prioritization L3 ) Then rdt_get_cdp_l3_config()
849  ret = true
851  If rdt_cpu_has(Cache Allocation Technology L2 ) Then
853  rdt_get_cache_alloc_cfg(2, & rdt_resources_all[RDT_RESOURCE_L2])
854  If rdt_cpu_has(Code and Data Prioritization L2 ) Then rdt_get_cdp_l2_config()
856  ret = true
859  If get_mem_config() Then ret = true
862  Return ret
Caller
NameDescribe
get_rdt_resources