Browse Source

Fix sched_setscheduler() return value

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4629 7fd9a85b-ad96-42d3-883c-3090e2eb8679
sbg
patacongo 13 years ago
parent
commit
2e53a5cf45
  1. 3
      nuttx/ChangeLog
  2. 5
      nuttx/sched/pthread_setschedparam.c
  3. 6
      nuttx/sched/sched_setscheduler.c

3
nuttx/ChangeLog

@ -2661,3 +2661,6 @@
and WWDIG watchdog timer driver. and WWDIG watchdog timer driver.
* configs/stm3240g-eval/src/up_lcd.c: Add LCD from for the STM3240G-EVAL (the * configs/stm3240g-eval/src/up_lcd.c: Add LCD from for the STM3240G-EVAL (the
initial check-in is just a stm3210e-eval driver with renaming). initial check-in is just a stm3210e-eval driver with renaming).
* sched/sched_setscheduler.c: Correct successful return value (Contributed
by Richard Cochran).

5
nuttx/sched/pthread_setschedparam.c

@ -1,8 +1,8 @@
/******************************************************************************************** /********************************************************************************************
* pthread_setschedparam.c * pthread_setschedparam.c
* *
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008, 2012 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 * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * 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; return ret;
} }

6
nuttx/sched/sched_setscheduler.c

@ -1,8 +1,8 @@
/**************************************************************************** /****************************************************************************
* sched/sched_setscheduler.c * sched/sched_setscheduler.c
* *
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2009, 2012 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 * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -182,7 +182,7 @@ int sched_setscheduler(pid_t pid, int policy,
} }
else else
{ {
return SCHED_FIFO; return OK;
} }
} }

Loading…
Cancel
Save