hv: pirq: use a bitmap to maintain irq use status

This commit replaces the "used" field of irq_desc with a bitmap to maintain
the irq use status to save memory and LOC, and improve the efficiency as well.

Signed-off-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Yan, Like
2018-08-20 22:41:08 +08:00
committed by lijinxia
parent e0d40feaa8
commit 65e01a0cd2
3 changed files with 12 additions and 25 deletions

View File

@@ -24,7 +24,7 @@
#define NR_MAX_VECTOR 0xFFU
#define VECTOR_INVALID (NR_MAX_VECTOR + 1U)
#define NR_IRQS (256U + 16U)
#define NR_IRQS 256U
#define IRQ_INVALID 0xffffffffU
#define TIMER_IRQ (NR_IRQS - 1U)