]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hpet: remove hpet_msi_read
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 28 Sep 2020 08:41:48 +0000 (10:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Sep 2020 08:41:48 +0000 (10:41 +0200)
It's dead code, even more now that read_msi_msg has been removed.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hpet.c

index 154c67423b4c3a67579f44ebfac40e7b60f51dd5..a55e68e6f7ed895971a9b2e344697f577a435c63 100644 (file)
@@ -268,16 +268,6 @@ static int hpet_msi_write(struct hpet_event_channel *ch, struct msi_msg *msg)
     return 0;
 }
 
-static void __maybe_unused
-hpet_msi_read(struct hpet_event_channel *ch, struct msi_msg *msg)
-{
-    msg->data = hpet_read32(HPET_Tn_ROUTE(ch->idx));
-    msg->address_lo = hpet_read32(HPET_Tn_ROUTE(ch->idx) + 4);
-    msg->address_hi = MSI_ADDR_BASE_HI;
-    if ( iommu_intremap )
-        iommu_read_msi_from_ire(&ch->msi, msg);
-}
-
 static unsigned int hpet_msi_startup(struct irq_desc *desc)
 {
     hpet_msi_unmask(desc);