[PATCH 01/11] smp: Replace task delete with suspend

Sebastian Huber sebastian.huber at embedded-brains.de
Mon May 27 10:58:06 UTC 2013


The rtems_task_delete() does not work on SMP at the moment.  See PR1814.
---
 cpukit/rtems/src/taskdelete.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c
index 2f78301..6ab5798 100644
--- a/cpukit/rtems/src/taskdelete.c
+++ b/cpukit/rtems/src/taskdelete.c
@@ -38,6 +38,9 @@ rtems_status_code rtems_task_delete(
   rtems_id id
 )
 {
+#ifdef RTEMS_SMP
+  return rtems_task_suspend( id );
+#else /* RTEMS_SMP */
   register Thread_Control *the_thread;
   Objects_Locations        location;
   Objects_Information     *the_information;
@@ -90,4 +93,5 @@ rtems_status_code rtems_task_delete(
 
   _RTEMS_Unlock_allocator();
   return RTEMS_INVALID_ID;
+#endif /* RTEMS_SMP */
 }
-- 
1.7.7




More information about the devel mailing list