void cxl_free_afu_irqs(struct cxl_context *ctx) { irq_hw_number_t hwirq; unsigned int virq; if (!cpu_has_feature(CPU_FTR_HVMODE)) { hwirq = cxl_find_afu_irq(ctx, 0); if (hwirq) { virq = irq_find_mapping(NULL, hwirq); if (virq) cxl_unmap_irq(virq, ctx); } } afu_irq_name_free(ctx); cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); }
void cxl_free_afu_irqs(struct cxl_context *ctx) { afu_irq_name_free(ctx); cxl_release_irq_ranges(&ctx->irqs, ctx->afu->adapter); }