aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-18 13:24:39 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-18 13:24:39 +0000
commit2e53a5cf45d21d509315ee6e97b812288d0e3aa1 (patch)
treed42ef2c1ba77634d1b40fb888a7ec5fe98d5bbf9 /nuttx/sched
parent340aca6485a8d58028d930150775b93a2d6bf8ef (diff)
downloadpx4-firmware-2e53a5cf45d21d509315ee6e97b812288d0e3aa1.tar.gz
px4-firmware-2e53a5cf45d21d509315ee6e97b812288d0e3aa1.tar.bz2
px4-firmware-2e53a5cf45d21d509315ee6e97b812288d0e3aa1.zip
Fix sched_setscheduler() return value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4629 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/pthread_setschedparam.c5
-rw-r--r--nuttx/sched/sched_setscheduler.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/sched/pthread_setschedparam.c b/nuttx/sched/pthread_setschedparam.c
index 40e1c4918..e3e3c8ae9 100644
--- a/nuttx/sched/pthread_setschedparam.c
+++ b/nuttx/sched/pthread_setschedparam.c
@@ -1,8 +1,8 @@
/********************************************************************************************
* pthread_setschedparam.c
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007, 2008, 2012 Gregory Nutt. All rights reserved.
+ * 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
@@ -136,3 +136,4 @@ int pthread_setschedparam(pthread_t thread, int policy, FAR const struct sched_p
}
return ret;
}
+
diff --git a/nuttx/sched/sched_setscheduler.c b/nuttx/sched/sched_setscheduler.c
index 2ca4849bb..dafab3e7b 100644
--- a/nuttx/sched/sched_setscheduler.c
+++ b/nuttx/sched/sched_setscheduler.c
@@ -1,8 +1,8 @@
/****************************************************************************
* sched/sched_setscheduler.c
*
- * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved.
+ * 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
@@ -182,7 +182,7 @@ int sched_setscheduler(pid_t pid, int policy,
}
else
{
- return SCHED_FIFO;
+ return OK;
}
}