Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-29 Thread Christian Mauderer
Am 29.04.2016 um 09:39 schrieb Chris Johns: > On 29/04/2016 16:19, Christian Mauderer wrote: >> Am 29.04.2016 um 02:45 schrieb Chris Johns: >>> On 28/04/2016 18:27, Christian Mauderer wrote: Am 27.04.2016 um 02:07 schrieb Chris Johns: > On 26/04/2016 22:22, Christian Mauderer wrote: >>

[PATCH] score: Add dummy Strong APA scheduler

2016-04-29 Thread Sebastian Huber
Start with a copy of the Priority SMP scheduler implementation. Update #2510. --- cpukit/sapi/include/confdefs.h | 29 ++ cpukit/sapi/include/rtems/scheduler.h | 20 ++ cpukit/score/Makefile.am | 2 + .../score/include/rtems/score/sch

[PATCH 16/19] score: Delete __RTEMS_STRICT_ORDER_MUTEX__

2016-04-29 Thread Sebastian Huber
Remove support for strict order mutexes. Close #2124. --- cpukit/configure.ac | 6 --- cpukit/posix/src/mutextranslatereturncode.c | 3 -- cpukit/rtems/src/semtranslatereturncode.c| 3 -- cpukit/score/include/rtems/score/coremutex.h | 25 --

[PATCH 17/19] score: __RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__

2016-04-29 Thread Sebastian Huber
Delete __RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__ as a preparation to restructure the CORE mutex variants and reduce the branch complexity. --- cpukit/configure.ac | 6 - cpukit/score/Makefile.am | 3 +- cpukit/score/include/rtems/score/coremu

[PATCH 07/19] score: _CORE_message_queue_Insert_message()

2016-04-29 Thread Sebastian Huber
Move common code into _CORE_message_queue_Insert_message(). --- cpukit/score/include/rtems/score/coremsgimpl.h | 12 ++-- cpukit/score/src/coremsginsert.c | 10 ++ cpukit/score/src/coremsgseize.c| 10 +++--- cpukit/score/src/coremsgsubmit.c

[PATCH 06/19] score: _CORE_message_queue_Set_message_priority()

2016-04-29 Thread Sebastian Huber
Remove _CORE_message_queue_Set_message_priority() and set the priority in _CORE_message_queue_Insert_message(). --- cpukit/score/include/rtems/score/coremsgimpl.h | 16 cpukit/score/src/coremsginsert.c | 5 - cpukit/score/src/coremsgseize.c| 11 +

[PATCH 13/19] score: _Objects_Get_name_as_string()

2016-04-29 Thread Sebastian Huber
Avoid Giant lock in _Objects_Get_name_as_string(). Update #2555. --- cpukit/score/src/objectgetnameasstring.c | 68 ++-- 1 file changed, 29 insertions(+), 39 deletions(-) diff --git a/cpukit/score/src/objectgetnameasstring.c b/cpukit/score/src/objectgetnameasstring.c

[PATCH 19/19] posix: Avoid Giant lock in _POSIX_signals_Send()

2016-04-29 Thread Sebastian Huber
Update #2555. Update #2690. --- cpukit/posix/src/killinfo.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index 3df670c..b16b408 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @

[PATCH 15/19] score: Avoid Giant lock for set time of day

2016-04-29 Thread Sebastian Huber
Update #2555. Update #2630. --- cpukit/posix/src/adjtime.c | 2 +- cpukit/posix/src/clocksettime.c| 6 +-- cpukit/rtems/src/clockset.c| 17 cpukit/score/include/rtems/score/timecounterimpl.h | 5 ++- cpukit/score/inclu

[PATCH 09/19] rtems: Avoid Giant lock for message queues

2016-04-29 Thread Sebastian Huber
Update #2555. --- cpukit/rtems/include/rtems/rtems/messageimpl.h | 21 cpukit/rtems/src/msgqgetnumberpending.c| 47 ++ 2 files changed, 17 insertions(+), 51 deletions(-) diff --git a/cpukit/rtems/include/rtems/rtems/messageimpl.h b/cpukit/rtems/includ

[PATCH 10/19] posix: Simplify message queues

2016-04-29 Thread Sebastian Huber
The mq_open() function returns a descriptor to a POSIX message queue object identified by a name. This is similar to sem_open(). In contrast to the POSIX semaphore the POSIX message queues use a separate object for the descriptor. This extra object is superfluous, since the object identifier can

[PATCH 03/19] score: _CORE_message_queue_Close()

2016-04-29 Thread Sebastian Huber
Move lock acquire to caller of _CORE_message_queue_Close() to allow state checks during object close operations under lock protection. Ensures deletion safety on uni-processor configuration. --- cpukit/posix/src/mqueuedeletesupp.c| 6 +- cpukit/rtems/src/msgqdelete.c

[PATCH 04/19] score: _CORE_message_queue_Seize()

2016-04-29 Thread Sebastian Huber
Move lock acquire to caller of _CORE_message_queue_Seize() to allow state checks during receive operations under lock protection. --- cpukit/posix/src/mqueuerecvsupp.c | 5 + cpukit/rtems/src/msgqreceive.c| 5 + cpukit/score/src/coremsgseize.c | 1 - 3 files changed, 10 insertions(+)

[PATCH 14/19] score: Streamline set time of day functions

2016-04-29 Thread Sebastian Huber
Rename _TOD_Set() into _TOD_Set_with_timespec(). Rename _TOD_Set_with_timestamp() into _TOD_Set(). This is now in line with _TOD_Get() and _TOD_Get_as_timespec(). The timestamp is the canonical format. --- cpukit/posix/src/clocksettime.c| 2 +- cpukit/rtems/src/clockset.c

[PATCH 08/19] score: Move message notification

2016-04-29 Thread Sebastian Huber
Move message notification to end of critical section and delegate the message queue release to the notification handler. It may do more complex notification actions out of the critical section. Update #2555. --- cpukit/posix/src/mqueuenotify.c| 23 +++ cpukit/

[PATCH 01/19] posix: POSIX_Message_queue_Control::process_shared

2016-04-29 Thread Sebastian Huber
Delete unused POSIX_Message_queue_Control::process_shared. --- cpukit/posix/include/rtems/posix/mqueue.h | 1 - cpukit/posix/src/mqueueopen.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h in

[PATCH 12/19] rtems: Avoid Giant lock in rtems_object_set_name()

2016-04-29 Thread Sebastian Huber
Update #2555. --- cpukit/rtems/src/rtemsobjectsetname.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c index 5228497..ccdda15 100644 --- a/cpukit/rtems/src/rtemsobjectse

[PATCH 11/19] rtems: Avoid Giant lock for semaphores

2016-04-29 Thread Sebastian Huber
Update #2555. --- cpukit/libnetworking/rtems/rtems_glue.c| 7 ++- cpukit/rtems/include/rtems/rtems/semimpl.h | 20 cpukit/rtems/src/semsetpriority.c | 26 -- testsuites/tmtests/tm26/task1.c| 14 +++--- 4 files chang

[PATCH 05/19] score: _CORE_message_queue_Submit()

2016-04-29 Thread Sebastian Huber
Move lock acquire to caller of _CORE_message_queue_Submit() to allow state checks during send operations under lock protection. --- cpukit/posix/src/mqueuesendsupp.c | 5 + cpukit/rtems/src/msgqsend.c | 4 cpukit/rtems/src/msgqurgent.c | 4 cpukit/score/src/coremsgsubmit.c

[PATCH 02/19] posix: Delete POSIX_Message_queue_Control::named

2016-04-29 Thread Sebastian Huber
Delete unused POSIX_Message_queue_Control::named. --- cpukit/posix/include/rtems/posix/mqueue.h | 1 - cpukit/posix/src/mqueueopen.c | 1 - 2 files changed, 2 deletions(-) diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h index a2e8fd9

[PATCH 18/19] posix: Remove superfluous thread dispatch disable

2016-04-29 Thread Sebastian Huber
The _Thread_queue_Enqueue_critical() already deals with thread dispatching. Update #2555. --- cpukit/posix/src/sigtimedwait.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/cpukit/posix/src/sigtimedwait.c b/cpukit/posix/src/sigtimedwait.c index 8f

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-29 Thread Chris Johns
On 29/04/2016 16:19, Christian Mauderer wrote: Am 29.04.2016 um 02:45 schrieb Chris Johns: On 28/04/2016 18:27, Christian Mauderer wrote: Am 27.04.2016 um 02:07 schrieb Chris Johns: On 26/04/2016 22:22, Christian Mauderer wrote: Am 26.04.2016 um 04:51 schrieb Chris Johns: On 26/04/2016 07:22