mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 14:07:42 +00:00
hv:irq: correct the size of irq_alloc_bitmap
This commit corrected the size of irq_alloc_bitmap[]. Tracked-On: #1229 Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
parent
4fd5102edc
commit
5a996ce6a9
@ -10,7 +10,7 @@
|
|||||||
static spinlock_t exception_spinlock = { .head = 0U, .tail = 0U, };
|
static spinlock_t exception_spinlock = { .head = 0U, .tail = 0U, };
|
||||||
static spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };
|
static spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };
|
||||||
|
|
||||||
#define IRQ_ALLOC_BITMAP_SIZE INT_DIV_ROUNDUP(NR_IRQS, sizeof(uint64_t))
|
#define IRQ_ALLOC_BITMAP_SIZE INT_DIV_ROUNDUP(NR_IRQS, 64U)
|
||||||
static uint64_t irq_alloc_bitmap[IRQ_ALLOC_BITMAP_SIZE];
|
static uint64_t irq_alloc_bitmap[IRQ_ALLOC_BITMAP_SIZE];
|
||||||
static struct irq_desc irq_desc_array[NR_IRQS];
|
static struct irq_desc irq_desc_array[NR_IRQS];
|
||||||
static uint32_t vector_to_irq[NR_MAX_VECTOR + 1];
|
static uint32_t vector_to_irq[NR_MAX_VECTOR + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user