summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJ. German Rivera <Jose.G.Rivera@freescale.com>2013-10-29 21:05:38 (GMT)
committerJ. German Rivera <German.Rivera@freescale.com>2013-10-29 21:05:38 (GMT)
commit38a3ccea7160dabba6e91d140d4f5a49ead9b507 (patch)
tree318f1ffbcdaa95f124a974ed2766d406ddff69eb /drivers
parent5121e5a4941577a18aaee5d4769f97aec6f16030 (diff)
downloadlinux-fsl-qoriq-38a3ccea7160dabba6e91d140d4f5a49ead9b507.tar.xz
Revert "dpaa_eth: Add pool channel in each affined portal's SDQCR"
This reverts commit 5121e5a4941577a18aaee5d4769f97aec6f16030.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c
index c599052..d4ded36 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c
@@ -934,11 +934,10 @@ int dpaa_eth_add_channel(void *__arg)
const cpumask_t *cpus = qman_affine_cpus();
u32 pool = QM_SDQCR_CHANNELS_POOL_CONV((u32)(unsigned long)__arg);
int cpu;
- struct qman_portal *portal;
for_each_cpu(cpu, cpus) {
- portal = (struct qman_portal *)qman_get_affine_portal(cpu);
- qman_p_static_dequeue_add(portal, pool);
+ set_cpus_allowed_ptr(current, get_cpu_mask(cpu));
+ qman_static_dequeue_add(pool);
}
return 0;
}