qcacmn: Rename hif_callbacks and remove unwanted header files in source files
Rename hif_callbacks structure to hif_driver_state_callbacks and remove
get_monotonic callback and use qdf API to get monotonic time.
Remove following unwanted header files in the hif source files.
osdep.h, athdefs.h, a_types.h, osapi_linux.h.
Change-Id: Ib7a03cab1b056a33b39247989fa3dfca41c85f77
CRs-Fixed: 967765
diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c
index 2341f83..2f1c0a4 100644
--- a/hif/src/ce/ce_service.c
+++ b/hif/src/ce/ce_service.c
@@ -25,10 +25,6 @@
* to the Linux Foundation.
*/
-#include <osdep.h>
-#include "a_types.h"
-#include <athdefs.h>
-#include "osapi_linux.h"
#include "hif.h"
#include "hif_io32.h"
#include "ce_api.h"
@@ -138,19 +134,13 @@
union ce_desc *descriptor,
void *memory, int index)
{
- struct hif_callbacks *cbk = hif_get_callbacks_handle(scn);
int record_index = get_next_record_index(
&hif_ce_desc_history_index[ce_id], HIF_CE_HISTORY_MAX);
struct hif_ce_desc_event *event =
&hif_ce_desc_history[ce_id][record_index];
event->type = type;
-
- if (cbk && cbk->get_monotonic_boottime)
- event->time = cbk->get_monotonic_boottime();
- else
- event->time = ((uint64_t)qdf_system_ticks_to_msecs(
- qdf_system_ticks()) * 1000);
+ event->time = qdf_get_monotonic_boottime();
if (descriptor != NULL)
event->descriptor = *descriptor;