[rtems-libbsd commit] dpaa: Disable unused CGR code
Sebastian Huber
sebh at rtems.org
Mon Oct 23 07:27:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: b3a6ad0d6a4c5d832f3e865f91ebceac06dc5747
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b3a6ad0d6a4c5d832f3e865f91ebceac06dc5747
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu May 18 07:28:22 2017 +0200
dpaa: Disable unused CGR code
---
linux/drivers/soc/fsl/qbman/qman.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index d0d12dc..c8cf64f 100644
--- a/linux/drivers/soc/fsl/qbman/qman.c
+++ b/linux/drivers/soc/fsl/qbman/qman.c
@@ -2300,6 +2300,7 @@ static void qm_cgr_cscn_targ_set(struct __qm_mc_cgr *cgr, int pi, u32 val)
cgr->cscn_targ = cpu_to_be32(val | QM_CGR_TARG_PORTAL(pi));
}
+#ifndef __rtems__
static void qm_cgr_cscn_targ_clear(struct __qm_mc_cgr *cgr, int pi, u32 val)
{
if (qman_ip_rev >= QMAN_REV30)
@@ -2307,6 +2308,7 @@ static void qm_cgr_cscn_targ_clear(struct __qm_mc_cgr *cgr, int pi, u32 val)
else
cgr->cscn_targ = cpu_to_be32(val & ~QM_CGR_TARG_PORTAL(pi));
}
+#endif /* __rtems__ */
static u8 qman_cgr_cpus[CGR_NUM];
@@ -2390,6 +2392,7 @@ out:
}
EXPORT_SYMBOL(qman_create_cgr);
+#ifndef __rtems__
int qman_delete_cgr(struct qman_cgr *cgr)
{
unsigned long irqflags;
@@ -2483,6 +2486,7 @@ out:
preempt_enable();
}
EXPORT_SYMBOL(qman_delete_cgr_safe);
+#endif /* __rtems__ */
/* Cleanup FQs */
More information about the vc
mailing list