[rtems-libbsd commit] dpaa: Enable preemption in qm_mr_process_task()
Sebastian Huber
sebh at rtems.org
Mon Oct 23 07:27:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 3471177263dcf828ecb8a34f4a3c0ed03aa78bd9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3471177263dcf828ecb8a34f4a3c0ed03aa78bd9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu May 18 07:44:00 2017 +0200
dpaa: Enable preemption in qm_mr_process_task()
---
linux/drivers/soc/fsl/qbman/qman.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index c8cf64f..18c1de5 100644
--- a/linux/drivers/soc/fsl/qbman/qman.c
+++ b/linux/drivers/soc/fsl/qbman/qman.c
@@ -1438,7 +1438,13 @@ static void qm_mr_process_task(struct work_struct *work)
} else {
/* Its a software ERN */
fq = tag_to_fq(be32_to_cpu(msg->ern.tag));
+#ifdef __rtems__
+ preempt_enable();
+#endif /* __rtems__ */
fq->cb.ern(p, fq, msg);
+#ifdef __rtems__
+ preempt_disable();
+#endif /* __rtems__ */
}
num++;
qm_mr_next(&p->p);
More information about the vc
mailing list