mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 12:20:07 +08:00
Update due to API changes
This commit is contained in:
@@ -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));
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user