Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\matrix.c Create Date:2022-07-28 10:16:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Find the best CPU which has the lowest number of managed IRQs allocated

Proto:static unsigned int matrix_find_best_cpu_managed(struct irq_matrix *m, const struct cpumask *msk)

Type:unsigned int

Parameter:

TypeParameterName
struct irq_matrix *m
const struct cpumask *msk
153  allocated = UINT_MAX
156  best_cpu = UINT_MAX
159  cm = per_cpu_ptr(maps, cpu)
161  If Not online || managed_allocated > allocated Then Continue
164  best_cpu = cpu
165  allocated = managed_allocated
167  Return best_cpu
Caller
NameDescribe
irq_matrix_alloc_managedq_matrix_alloc_managed - Allocate a managed interrupt in a CPU map*@m: Matrix pointer*@cpu: On which CPU the interrupt should be allocated