Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\matrix.c Create Date:2022-07-28 10:16:56
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 vector allocation count

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

Type:unsigned int

Parameter:

TypeParameterName
struct irq_matrix *m
const struct cpumask *msk
132  maxavl = 0
135  best_cpu = UINT_MAX
138  cm = per_cpu_ptr(maps, cpu)
140  If Not online || available <= maxavl Then Continue
143  best_cpu = cpu
144  maxavl = available
146  Return best_cpu
Caller
NameDescribe
irq_matrix_allocq_matrix_alloc - Allocate a regular interrupt in a CPU map*@m: Matrix pointer*@msk: Which CPUs to search in*@reserved: Allocate previously reserved interrupts*@mapped_cpu: Pointer to store the CPU for which the irq was allocated