summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/aio/aioc_contain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/fs/aio/aioc_contain.c b/nuttx/fs/aio/aioc_contain.c
index bf13b66c4..98fcf7821 100644
--- a/nuttx/fs/aio/aioc_contain.c
+++ b/nuttx/fs/aio/aioc_contain.c
@@ -91,7 +91,9 @@ FAR struct aio_container_s *aio_contain(FAR struct aiocb *aiocbp)
{
FAR struct aio_container_s *aioc;
FAR struct file *filep;
+#ifdef CONFIG_PRIORITY_INHERITANCE
struct sched_param param;
+#endif
/* Get the file structure corresponding to the file descriptor. */
@@ -117,8 +119,10 @@ FAR struct aio_container_s *aio_contain(FAR struct aiocb *aiocbp)
aioc->aioc_filep = filep;
aioc->aioc_pid = getpid();
+#ifdef CONFIG_PRIORITY_INHERITANCE
DEBUGVERIFY(sched_getparam (aioc->aioc_pid, &param));
aioc->aioc_prio = param.sched_priority;
+#endif
/* Add the container to the pending transfer list. */