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:
Mohit Khanna 2016-10-06 19:58:02 -07:00 • committed by qcabuildsw
commit 865d8ff535

View file

@ -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);