qcacmn: Avoid using smp_processor_id() when preemptible
Call trace is observed in the function dp_rx_per_core_stats_update() with the following message. "using smp_processor_id() in preemptible" Use qdf_get_cpu() as it takes care for disabling preemption. CRs-Fixed: 3203385 Change-Id: I9761bf707b5ee92c7e0bb698c2825c9369efd7d5
This commit is contained in:

committed by
Madan Koyyalamudi

parent
18e9ba976b
commit
ed329bd354
@@ -2415,8 +2415,9 @@ static inline
|
||||
void dp_rx_per_core_stats_update(struct dp_soc *soc, uint8_t ring_id,
|
||||
uint32_t bufs_reaped)
|
||||
{
|
||||
DP_STATS_INC(soc,
|
||||
rx.ring_packets[smp_processor_id()][ring_id], bufs_reaped);
|
||||
int cpu_id = qdf_get_cpu();
|
||||
|
||||
DP_STATS_INC(soc, rx.ring_packets[cpu_id][ring_id], bufs_reaped);
|
||||
}
|
||||
|
||||
static inline
|
||||
|
Reference in New Issue
Block a user