mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Fix IRQ affinity Core-ID during NAPI CPU migration
Currently we are using core-id of the core for setting IRQ affinity. This is incorrect since core-ids can be common across clusters. Use CPU number instead for setting IRQ affinity. Change-Id: I71afd23c6a78985df51a694ed21cc6c3a51eedf3 CRs-Fixed: 1077069
This commit is contained in:
parent
f1059c45e2
commit
865d8ff535
1 changed files with 1 additions and 1 deletions
|
|
@ -1016,7 +1016,7 @@ int hncm_migrate_to(struct qca_napi_data *napid,
|
|||
|
||||
NAPI_DEBUG("-->%s(napi_cd=%d, didx=%d)", __func__, napi_ce, didx);
|
||||
|
||||
cpumask.bits[0] = (1 << napid->napi_cpu[didx].core_id);
|
||||
cpumask.bits[0] = (1 << didx);
|
||||
rc = irq_set_affinity_hint(napid->napis[napi_ce].irq, &cpumask);
|
||||
napid->napi_cpu[didx].napis |= (1 << napi_ce);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue