qcacmn: Extend add timestamp logic for Beryllium
Extend add timestamp logic for Beryllium Change-Id: I69604b83ce5fe7f112316148213d73fefc88ba9b CRs-Fixed: 3245806
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
f79e9cc3dc
commit
a87c585e12
@@ -5927,3 +5927,25 @@ QDF_STATUS dp_tso_soc_detach(struct cdp_soc_t *txrx_soc)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DP_PKT_ADD_TIMESTAMP
|
||||
void dp_pkt_add_timestamp(struct dp_vdev *vdev,
|
||||
enum qdf_pkt_timestamp_index index, uint64_t time,
|
||||
qdf_nbuf_t nbuf)
|
||||
{
|
||||
if (qdf_unlikely(qdf_is_dp_pkt_timestamp_enabled())) {
|
||||
uint64_t tsf_time;
|
||||
|
||||
if (vdev->get_tsf_time) {
|
||||
vdev->get_tsf_time(vdev->osif_vdev, time, &tsf_time);
|
||||
qdf_add_dp_pkt_timestamp(nbuf, index, tsf_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void dp_pkt_get_timestamp(uint64_t *time)
|
||||
{
|
||||
if (qdf_unlikely(qdf_is_dp_pkt_timestamp_enabled()))
|
||||
*time = qdf_get_log_timestamp();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user