summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_getparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_getparam.c')
-rw-r--r--nuttx/sched/sched_getparam.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/sched/sched_getparam.c b/nuttx/sched/sched_getparam.c
index a74e4d65e..47eab4988 100644
--- a/nuttx/sched/sched_getparam.c
+++ b/nuttx/sched/sched_getparam.c
@@ -2,7 +2,7 @@
* sched/sched_getparam.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -38,8 +38,10 @@
************************************************************************/
#include <nuttx/config.h>
+
#include <sys/types.h>
#include <sched.h>
+
#include "os_internal.h"
/************************************************************************
@@ -135,6 +137,7 @@ int sched_getparam (pid_t pid, struct sched_param * param)
param->sched_priority = (int)tcb->sched_priority;
}
+
sched_unlock();
}