Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_rmid_to_limbo

Proto:static void add_rmid_to_limbo(struct rmid_entry *entry)

Type:void

Parameter:

TypeParameterName
struct rmid_entry *entry
172  r = rdt_resources_all[RDT_RESOURCE_L3]
174  busy = 0
175  cpu = get_cpu()
177  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
178  val = __rmid_read(rmid, Event IDs are used to program IA32_QM_EVTSEL before reading event* counter from IA32_QM_CTR)
179  If val <= This is the threshold cache occupancy at which we will consider an* RMID available for re-allocation. Then Continue
187  If Not has_busy_rmid(r, d) Then cqm_setup_limbo_handler(d, CQM_LIMBOCHECK_INTERVAL)
189  Atomically set a bit in memory
190  busy++
192  put_cpu()
194  If busy Then @rmid_limbo_count count of currently unused but (potentially)* dirty RMIDs.* This counts RMIDs that no one is currently using but that* may have a occupancy value > intel_cqm_threshold. User can change* the threshold occupancy value.++
196  Else list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
free_rmid