summaryrefslogtreecommitdiff
path: root/nuttx/sched
Commit message (Collapse)AuthorAgeFilesLines
* sched: Do not use uninitialized boolean in waitpid(). From Juha NiskanenGregory Nutt2015-03-121-1/+1
|
* Fix a case in mq_timedsend() where the return errno value was being overwrittenGregory Nutt2015-03-102-3/+12
|
* Reorder some operations to minimize a race conditionGregory Nutt2015-03-102-41/+65
|
* mq_timedsend(): Do check for time errors if the message queue is not full. ↵Gregory Nutt2015-03-103-74/+84
| | | | Noted by Freddie Chopin
* Move board_ prototypes from arch.h to board.hGregory Nutt2015-02-271-0/+1
|
* Fix places where the errno value was being overwritten by subsequent actions ↵Gregory Nutt2015-02-251-10/+23
| | | | so that the returned errno value was incorrect. From Max Neklyudov.
* When an RTC is used, clock_systimespec() must subtract the basetime from the ↵Gregory Nutt2015-02-252-4/+44
| | | | RTC time
* Fix some time value changes; mostly changing greater than 1000000000 to ↵Gregory Nutt2015-02-203-5/+5
| | | | greater than or equal to 1000000000. From Juha Niskanen
* Networking: Divide net_intiialize() into net_setup() and net_initialize() to ↵Gregory Nutt2015-02-141-3/+15
| | | | | | solve a chicken-and-egg problem. net_setup() must be caleld before up_initialize() is called so that networking data structures are ready to register new network devices. net_initialize() now does only timer related operations and is called AFTER up_initialize() where the timers are configured. This is really.
* Update ChangeLogGregory Nutt2015-02-131-1/+3
|
* Back out commit d998cbdfa6c10dbd8074dd43c39c23a006505987Gregory Nutt2015-02-131-6/+6
|
* Move the initialization of the networking subsystem to AFTER up_initialize ↵Gregory Nutt2015-02-131-6/+6
| | | | is called. Fromo Macs Neklyudov.
* RTC: Remove all backdoor interfaces from rtc.hGregory Nutt2015-02-134-8/+3
|
* Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system ↵Gregory Nutt2015-02-131-4/+3
| | | | | | | | time is enabled, and (2) the value of CONFIG_USEC_PER_TICK is less than 1 millisconds (such as when using the tickless mode of operation). In that case, the convertion of time to 64-bit millisecond value in clock_systmer64() causes some bad times to be returned. Time was converted to milliseconds, then to configured ticks. Precision was lost in the millisecond convertion. The fix is to first convert time to a 64-bit microsecond value, then to the configured tick value. Noted by David Sidrane.
* gettimeofday() and settimeofday(): Move gittimeofdady() from sched/clock to ↵Gregory Nutt2015-02-122-114/+1
| | | | | | libc/time. All remove gettimeofday() from NuttX system calls. It is only a wrapper around clock_settime() and does not need a trap. gettimeofday() is no longer tried as a core OS interface. gettimeofday has been decremented in POSIX 2008. settimeofday() was never part of POSIX, but I decided to add it to libc as well just for symmetry.
* Convert the 64-bit usec limit to a 32-bit tick limitGregory Nutt2015-02-032-8/+9
|
* Eliminates a warning. From Macs NGregory Nutt2015-02-031-0/+4
|
* On my platform I have just 16-bit timer clocked at 32kHz. As result oneshot ↵Gregory Nutt2015-02-032-5/+35
| | | | timer max delay is 2s. The patch adds limit of maximum ticks in sched_timer_start (nuttx/sched/sched/sched_timerexpiration.c). From Macs N.
* clock_systimespec(): Fixes for compilation errors in certain ↵Gregory Nutt2015-01-301-1/+2
| | | | configurations. From Macs N.
* Fix backward calculation in the work queue timing. From Liio Chen via the ↵Gregory Nutt2015-01-271-5/+13
| | | | PX4 repository
* Semaphores: sem_waitirq.c must be built when signals are disabled. That is ↵Gregory Nutt2014-12-283-14/+13
| | | | because not handles not only the case of semaphore wait being awakened by a signal, but also the case with sem_timedwait.c when the semaphore wait is awakened by a timeout.
* Semahores: Remove a warning with SIGNALS are disabledGregory Nutt2014-12-281-2/+0
|
* strncpy will not copy the terminating \0 into the destination if the source ↵Gregory Nutt2014-12-175-4/+10
| | | | is larger than the size of the destination. Ensure that the last byte is always zero and let strncpy only copy CONFIG_TASK_NAME_SIZE bytes. The issue of unterminated names can be observed in ps when creating a pthread while CONFIG_TASK_NAME_SIZE is set to 8.
* Sempahores: Add logic to clean up after task_delete() or pthread_cancel() ↵Gregory Nutt2014-12-137-22/+304
| | | | if the task happens to be waiting on a semaphore when it is cancelled
* Costmetic change to a commentGregory Nutt2014-12-131-1/+1
|
* In message queue created return ENOSPC error if size exceeds the configured ↵Gregory Nutt2014-12-062-14/+20
| | | | size of pre-allocatd messages; Use ENOSPC vs ENOMEM per OpenGroup.org. From Pierre-Noel Bouteville
* msg type should be char * not void * in mq_send, mq_timedsend, mq_receive, ↵Gregory Nutt2014-12-057-27/+26
| | | | and mq_timedreceive. Noted by Pierre-Noel Bouteville
* Fix more issues detected by cppcheckGregory Nutt2014-11-251-5/+3
|
* More fixes to problems noted by cppcheck. Some are kind of risky; some are ↵Gregory Nutt2014-11-254-5/+6
| | | | real bugs.
* Cosmetic chnages to commentsGregory Nutt2014-11-201-0/+6
|
* alling mq_timedreceived with immediate timeout was getting stuck and notGregory Nutt2014-11-191-2/+39
| | | | | | | | | | | | | timeout. Immediate timeout is achieved by setting absolute timeout value to past time, for example abstime={ .tv_sec=0, .tv_nsec=0 }. However absolute time was converted to relative time using unsigned integer arithmetic and resulted large ticks count by clock_abstime2ticks, instead of expected negative ticks value. Patch corrects clock_abstime2ticks to return negative ticks, if absolute time is in the past. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
* Fix some compile issues introduces with removal of CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-141-1/+5
|
* Fix some compile errors introduce in last commitsGregory Nutt2014-11-131-1/+1
|
* task_create: Don't even try if the accumulated size of the argument list is ↵Gregory Nutt2014-11-131-1/+8
| | | | larger than the stack
* vfork no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-122-18/+51
|
* task_start() no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-121-0/+5
|
* task_setup() no longer depends on CONFIG_MAX_TASK_ARGSGregory Nutt2014-11-121-8/+19
|
* Remove CONFIG_MAX_TASK_ARGS from all Kconfigs and defconfigsGregory Nutt2014-11-121-7/+0
|
* Fix an important bug in the watchdog creation logicGregory Nutt2014-11-101-1/+1
|
* Fix incorrect commentGregory Nutt2014-11-071-3/+1
|
* More fixes to tickless operation, alarm/mode code. From Brandon WarhurstGregory Nutt2014-10-231-1/+7
|
* Fixes to tickless operation code. From Brandon WarhurstGregory Nutt2014-10-231-5/+5
|
* Default for CONFIG_SCHED_HPWORK should be noGregory Nutt2014-10-141-1/+1
|
* Add description of work queues to the porting guide. Update commentsGregory Nutt2014-10-141-5/+5
|
* Missing workqueue logicGregory Nutt2014-10-121-0/+3
|
* Fix one missed name change from last big commitGregory Nutt2014-10-121-3/+3
|
* Change naming of HP work queue configuration varaibles to be symmetric with ↵Gregory Nutt2014-10-112-7/+7
| | | | LP work queue naming
* Eliminate warningsGregory Nutt2014-10-111-1/+1
|
* Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORKGregory Nutt2014-10-112-4/+4
|
* Decouple the user-space work queue from the kernel space work queuesGregory Nutt2014-10-111-1/+170
|