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:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Handler to scan the limbo list and move the RMIDs* to free list whose occupancy < threshold_occupancy.

Proto:void cqm_handle_limbo(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
472  delay = msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
473  cpu = smp_processor_id()
477  mutex_lock( & Mutex to protect rdtgroup access. )
479  r = rdt_resources_all[RDT_RESOURCE_L3]
480  d = get_domain_from_cpu(cpu, r)
482  If Not d Then
483  pr_warn_once("Failure to get domain for limbo worker\n")
484  Go to out_unlock
487  Check the RMIDs that are marked as busy for this domain. If the* reported LLC occupancy is below the threshold clear the busy bit and* decrement the count. If the busy count gets to zero on an RMID, we* free the RMID
489  If has_busy_rmid(r, d) Then schedule_delayed_work_on - queue work in global workqueue on CPU after delay*@cpu: cpu to use*@dwork: job to be done*@delay: number of jiffies to wait* After waiting for a given time this puts a job in the kernel-global* workqueue on the specified CPU.
492  out_unlock :
493  mutex_unlock( & Mutex to protect rdtgroup access. )