qcacmn: Add per CPU interrupt statistics
Add per CPU per copy engine interrupt statistics.
Change-Id: I1619f0db3314ae3d915284459f2b191f31fc2190
CRs-Fixed: 1017437
diff --git a/hif/src/dispatcher/multibus.c b/hif/src/dispatcher/multibus.c
index e084080..215c829 100644
--- a/hif/src/dispatcher/multibus.c
+++ b/hif/src/dispatcher/multibus.c
@@ -36,6 +36,8 @@
#endif
#include "htc_services.h"
#include "a_types.h"
+#include "dummy.h"
+
/**
* hif_intialize_default_ops() - intializes default operations values
*
@@ -49,6 +51,10 @@
bus_ops->hif_bus_close = NULL;
/* dummy implementations */
+ bus_ops->hif_display_stats =
+ &hif_dummy_display_stats;
+ bus_ops->hif_clear_stats =
+ &hif_dummy_clear_stats;
}
#define NUM_OPS (sizeof(struct hif_bus_ops) / sizeof(void *))
@@ -296,6 +302,20 @@
hif_sc->bus_ops.hif_mask_interrupt_call(hif_sc);
}
+void hif_display_bus_stats(struct hif_opaque_softc *scn)
+{
+ struct hif_softc *hif_sc = HIF_GET_SOFTC(scn);
+
+ hif_sc->bus_ops.hif_display_stats(hif_sc);
+}
+
+void hif_clear_bus_stats(struct hif_opaque_softc *scn)
+{
+ struct hif_softc *hif_sc = HIF_GET_SOFTC(scn);
+
+ hif_sc->bus_ops.hif_clear_stats(hif_sc);
+}
+
/**
* hif_enable_power_management() - enable power management after driver load
* @hif_hdl: opaque pointer to the hif context