Files
acrn-hypervisor/hypervisor/arch/x86
Yan, Like 1bf2fc342a hv: pirq: refactor irq num alloc/free
This commit refactors the alloc/free irq num, two functions are defined:
- uint32_t alloc_irq_num(uint32_t irq)
  - if irq is valid, mark the irq_desc as used; if it's IRQ_INVALID,
    alloc a free irq, or else do nothing;
  - return: irq num on success, or IRQ_INVALID on failure.

- void free_irq_num(uint32_t irq)
  - free the irq num allocated via alloc_irq_num();

And a global spinlock to protect it from concurrent allocation/free.

Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-08-17 14:25:52 +08:00
..
2018-08-17 12:36:53 +08:00
2018-08-17 12:36:53 +08:00
2018-08-17 10:02:12 +08:00
2018-08-16 09:43:34 +08:00
2018-08-17 14:25:52 +08:00
2018-08-17 14:25:52 +08:00
2018-08-15 12:05:18 +08:00
2018-08-14 09:53:32 +08:00
2018-08-06 12:27:53 +08:00
2018-08-07 09:55:13 +08:00
2018-08-10 10:17:09 +08:00
2018-08-16 16:24:13 +08:00
2018-08-17 12:36:53 +08:00