qcacmn: Change logging time-stamp source

Currently there is mismatch in time-stamp source for
hif_hist_skip_event_record with respect to hif_hist_record_event

Updating time-stamp source in hif_hist_record_event to match with
hif_hist_skip_event_record time-stamp source.

Change-Id: I55680c40860eafb5c6ed6117ab7c55bb38cc24bb
CRs-Fixed: 3000319
This commit is contained in:
Amit Mehta
2021-08-04 17:15:45 +05:30
committed by Madan Koyyalamudi
parent 4a84bdb2ad
commit 5b3cc21863

View File

@@ -96,7 +96,7 @@ hif_hist_skip_event_record(struct hif_event_history *hist_ev,
HIF_EVENT_HIST_MAX)) {
last_irq_rec =
&hist_ev->event[hist_ev->misc.last_irq_index];
last_irq_rec->timestamp = qdf_get_log_timestamp();
last_irq_rec->timestamp = hif_get_log_timestamp();
last_irq_rec->cpu_id = qdf_get_cpu();
last_irq_rec->hp++;
last_irq_rec->tp = last_irq_rec->timestamp -
@@ -106,7 +106,7 @@ hif_hist_skip_event_record(struct hif_event_history *hist_ev,
break;
case HIF_EVENT_BH_SCHED:
if (rec->type == HIF_EVENT_BH_SCHED) {
rec->timestamp = qdf_get_log_timestamp();
rec->timestamp = hif_get_log_timestamp();
rec->cpu_id = qdf_get_cpu();
return true;
}