Name

init_alloc_desc_masks — allocate cpumasks for irq_desc

Synopsis

bool init_alloc_desc_masks (struct irq_desc * desc,
 int cpu,
 bool boot);
 

Arguments

desc

pointer to irq_desc struct

cpu

cpu which will be handling the cpumasks

boot

true if need bootmem

Description

Allocates affinity and pending_mask cpumask if required. Returns true if successful (or not required).

Side effect

affinity has all bits set, pending_mask has all bits clear.