mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-02 20:35:32 +00:00
Currently ptdev_release_all_entries() calls ptirq_release_entry() to release ptdev IRQs, which is not sufficient because free_irq() is not included in ptirq_release_entry(). Furthermore, function ptirq_deactivate_entry() and ptirq_release_entry() have lots of overlaps which make the differences between them are not clear. This patch does: - Adds ptirq_deactivate_entry() call in ptdev_release_all_entries() if the irq has not already freed. - Remove unnecessary code from ptirq_deactivate_entry() to make it do the exact opposite to function ptirq_activate_entry(), except that entry->allocated_pirq is not reset, which is not necessary. - Added the missing del_timer() to ptirq_release_entry() to make it almost opposite to ptirq_alloc_entry(); Added memset() to clear the whole entry, which doesn't have impacts to the functionalities but keep the data structure clean. Tracked-On: #2700 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> |
||
---|---|---|
.. | ||
hv_main.c | ||
hypercall.c | ||
ptdev.c | ||
schedule.c | ||
softirq.c | ||
stack_protector.c | ||
static_checks.c | ||
trusty_hypercall.c | ||
vm_load.c |