summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-18 07:44:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-23 09:24:05 +0200
commit3471177263dcf828ecb8a34f4a3c0ed03aa78bd9 (patch)
tree37b48a32c0b261246813b955476d4b96c6d5bf78 /linux
parentb3a6ad0d6a4c5d832f3e865f91ebceac06dc5747 (diff)
downloadrtems-libbsd-3471177263dcf828ecb8a34f4a3c0ed03aa78bd9.tar.bz2
dpaa: Enable preemption in qm_mr_process_task()
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/soc/fsl/qbman/qman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index c8cf64f7..18c1de57 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);