On 28/05/2014 12:48 am, Ralf Kirchner wrote:
Enabling and disabling preemption as done for single core in bdbuf will not work for SMP.
Correct. Do the bdbuf tests currently fail on SMP ?
Thus as a temporary workaround
If this is a workaround what do you see is the proper fix ?
use POSIX mutexes and POSIX condition variables for SMP instead of the combination of semaphores and preemption handling used for single core.
I question this being conditional on SMP. Why not make it the same for both builds of RTEMS ? I have no problem with POSIX condition variables being used as the current method is a poor hacked version (done by me) and should be removed. Is doing a suitable "proper fix" ?
I would rather see us have a single method used for this code and it be tested and run as much as possible than see the code fragment in this way.
These will be allocated automatically.
On the topic of automatic maybe POSIX defaults to on and if disabled this code is not built. I do not think we need more POSIX enable work arounds.
Chris _______________________________________________ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel