summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-11 09:33:39 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-04-11 09:38:18 +0200
commitc6261f97870562d4c797cfb1ff1ba0affb85a916 (patch)
tree6c4863274beb1b98871e347e66a83d43dc0a777d /linux
parent589f43d6af2302623229760fb0f37378241b8bfe (diff)
downloadrtems-libbsd-c6261f97870562d4c797cfb1ff1ba0affb85a916.tar.bz2
Update due to API changes
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c4
-rw-r--r--linux/drivers/soc/fsl/qbman/bman_ccsr.c2
-rw-r--r--linux/drivers/soc/fsl/qbman/qman_portal.c2
-rw-r--r--linux/drivers/soc/fsl/qbman/qman_test_stash.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index 9fc5da0c..4f8d24ed 100644
--- a/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
+++ b/linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
@@ -995,7 +995,7 @@ static void dpaa_fq_setup(struct dpaa_priv *priv,
dpaa_setup_ingress(priv, fq, &fq_cbs->rx_defq);
p = qman_get_affine_portal(cpu);
fq->channel = qman_portal_get_channel(p);
- cpu = (cpu + 1) % (int)rtems_get_processor_count();
+ cpu = (cpu + 1) % (int)rtems_scheduler_get_processor_maximum();
break;
#endif /* __rtems__ */
case FQ_TYPE_TX:
@@ -3217,7 +3217,7 @@ dpaa_eth_priv_probe(struct platform_device *pdev, struct mac_device *mac_dev)
#ifndef __rtems__
for_each_possible_cpu(i) {
#else /* __rtems__ */
- for (i = 0; i < (int)rtems_get_processor_count(); ++i) {
+ for (i = 0; i < (int)rtems_scheduler_get_processor_maximum(); ++i) {
#endif /* __rtems__ */
percpu_priv = per_cpu_ptr(priv->percpu_priv, i);
memset(percpu_priv, 0, sizeof(*percpu_priv));
diff --git a/linux/drivers/soc/fsl/qbman/bman_ccsr.c b/linux/drivers/soc/fsl/qbman/bman_ccsr.c
index 0c3726e1..f15e521a 100644
--- a/linux/drivers/soc/fsl/qbman/bman_ccsr.c
+++ b/linux/drivers/soc/fsl/qbman/bman_ccsr.c
@@ -308,7 +308,7 @@ bman_sysinit(void)
}
};
const char *name;
- int cpu_count = (int)rtems_get_processor_count();
+ int cpu_count = (int)rtems_scheduler_get_processor_maximum();
int cpu;
int ret;
int node;
diff --git a/linux/drivers/soc/fsl/qbman/qman_portal.c b/linux/drivers/soc/fsl/qbman/qman_portal.c
index 1fbcb5ff..c0248e52 100644
--- a/linux/drivers/soc/fsl/qbman/qman_portal.c
+++ b/linux/drivers/soc/fsl/qbman/qman_portal.c
@@ -486,7 +486,7 @@ qman_sysinit_portals(void)
const char *fdt = bsp_fdt_get();
struct device_node dn;
const char *name;
- int cpu_count = (int)rtems_get_processor_count();
+ int cpu_count = (int)rtems_scheduler_get_processor_maximum();
int i;
int node;
diff --git a/linux/drivers/soc/fsl/qbman/qman_test_stash.c b/linux/drivers/soc/fsl/qbman/qman_test_stash.c
index 9c3a135f..f6558e25 100644
--- a/linux/drivers/soc/fsl/qbman/qman_test_stash.c
+++ b/linux/drivers/soc/fsl/qbman/qman_test_stash.c
@@ -115,7 +115,7 @@ static int on_all_cpus(int (*fn)(void))
#ifndef __rtems__
for_each_cpu(cpu, cpu_online_mask) {
#else /* __rtems__ */
- for (cpu = 0; cpu < (int)rtems_get_processor_count(); ++cpu) {
+ for (cpu = 0; cpu < (int)rtems_scheduler_get_processor_maximum(); ++cpu) {
#endif /* __rtems__ */
struct bstrap bstrap = {
.fn = fn,