[PATCH 4/4 v2] score: Use _Thread_Clear_state() for _Thread_Ready

2015-04-08 Thread Sebastian Huber
--- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/statesimpl.h | 3 +++ cpukit/score/include/rtems/score/threadimpl.h | 30 ++--- cpukit/score/src/threadready.c| 38 --- 4 files changed, 19

[PATCH 1/4 v2] score: Simplify _Thread_Set_state()

2015-04-08 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/threadimpl.h | 15 +-- cpukit/score/src/threadsetstate.c | 16 +--- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadimpl.h

[PATCH 3/4 v2] rtems: Atomically suspend/resume tasks

2015-04-08 Thread Sebastian Huber
--- cpukit/rtems/src/taskresume.c | 11 +-- cpukit/rtems/src/tasksuspend.c| 11 +-- cpukit/score/include/rtems/score/threadimpl.h | 15 --- testsuites/tmtests/tm26/task1.c | 2 +- 4 files changed, 11 insertions(+), 28

[PATCH 2/4 v2] score: Return prev state in thread state set/clear

2015-04-08 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/threadimpl.h | 20 +++- cpukit/score/src/threadclearstate.c | 22 +++--- cpukit/score/src/threadsetstate.c | 4 +++- 3 files changed, 29 insertions(+), 17 deletions(-) diff --git

[PATCH 1/4] timecounter: Import from FreeBSD

2015-04-08 Thread Alexander Krutwig
--- cpukit/score/include/sys/_ffcounter.h | 42 + cpukit/score/include/sys/timeffc.h| 389 +++ cpukit/score/include/sys/timepps.h| 249 cpukit/score/include/sys/timetc.h | 89 ++ cpukit/score/include/sys/timex.h | 171 +++ cpukit/score/src/kern_tc.c|

[PATCH 3/4] timecounter: Use in RTEMS

2015-04-08 Thread Alexander Krutwig
new rtems environment with the implementation of FreeBSD timecounters; modifications of certain tests in the testsuite New test: timecounter02 --- cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 3 +- cpukit/libnetworking/rtems/rtems_glue.c| 4 -

[PATCH 2/4] timecounter: Port to RTEMS

2015-04-08 Thread Alexander Krutwig
New test sptests/timecounter01. --- cpukit/sapi/Makefile.am| 4 +- cpukit/sapi/include/rtems/bsd.h| 141 cpukit/sapi/include/rtems/timecounter.h| 123 ++ cpukit/sapi/preinstall.am | 8 +

Re: [PATCH 4/4 v2] score: Use _Thread_Clear_state() for _Thread_Ready

2015-04-08 Thread Gedare Bloom
quick skim of these 4 looked good On Wed, Apr 8, 2015 at 5:49 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: --- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/statesimpl.h | 3 +++ cpukit/score/include/rtems/score/threadimpl.h | 30