hv: pirq: clean up unnecessary fields of irq_desc

This commit cleans up fiels of struct irq_desc:
- remove name, irq_desc_state, irq_cnt and irq_lost_cnt which are not used.
- remove irq_ prefix of irq_lock field of struct irq_desc;
- change enum irq_state to enum irq_use_state;

Signed-off-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Li, Fei <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Yan, Like
2018-08-16 15:05:46 +08:00
committed by lijinxia
parent bdcc3aef22
commit f77d885d7e
6 changed files with 47 additions and 114 deletions

View File

@@ -136,7 +136,7 @@ ptdev_activate_entry(struct ptdev_remapping_info *entry, uint32_t phys_irq)
/* register and allocate host vector/irq */
retval = request_irq(phys_irq, ptdev_interrupt_handler,
(void *)entry, "dev assign");
(void *)entry);
ASSERT(retval >= 0, "dev register failed");
entry->allocated_pirq = (uint32_t)retval;