Browse Source

qcacmn: Change ce_service_max_yield_time ini to us granularity

Change ce_service_max_yield_time ini to us granularity to have
yield time of us order as well.

Change-Id: Iae31be810dd42273a4f0546ba2b76e89e23b9329
CRs-fixed: 2086190
Himanshu Agarwal 7 years ago
parent
commit
909eb2e46f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      hif/inc/hif.h
  2. 2 2
      hif/src/hif_main.c

+ 1 - 1
hif/inc/hif.h

@@ -939,7 +939,7 @@ ssize_t hif_dump_desc_event(struct hif_softc *scn, char *buf);
  * Return: void
  */
 void hif_set_ce_service_max_yield_time(struct hif_opaque_softc *hif,
-				       uint8_t ce_service_max_yield_time);
+				       uint32_t ce_service_max_yield_time);
 
 /**
  * hif_get_ce_service_max_yield_time() - get CE service max yield time

+ 2 - 2
hif/src/hif_main.c

@@ -1261,12 +1261,12 @@ void hif_set_initial_wakeup_cb(struct hif_opaque_softc *hif_ctx,
 }
 
 void hif_set_ce_service_max_yield_time(struct hif_opaque_softc *hif,
-				       uint8_t ce_service_max_yield_time)
+				       uint32_t ce_service_max_yield_time)
 {
 	struct hif_softc *hif_ctx = HIF_GET_SOFTC(hif);
 
 	hif_ctx->ce_service_max_yield_time =
-		ce_service_max_yield_time * 1000 * 1000;
+		ce_service_max_yield_time * 1000;
 }
 
 unsigned long long