[rtems commit] score: Remove assert

Sebastian Huber sebh at rtems.org
Wed Jun 3 08:08:18 UTC 2015


Module:    rtems
Branch:    master
Commit:    863dcf458b0ae0d5a528172187718bb3da03e66a
Changeset: http://git.rtems.org/rtems/commit/?id=863dcf458b0ae0d5a528172187718bb3da03e66a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jun  2 14:01:29 2015 +0200

score: Remove assert

With the introduction of fine grained locking there is no longer a
one-to-one connection between the Giant lock nest level and the thread
dispatch disable level.

---

 cpukit/score/src/threaddispatchdisablelevel.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/cpukit/score/src/threaddispatchdisablelevel.c b/cpukit/score/src/threaddispatchdisablelevel.c
index 9170f2e..07201a5 100644
--- a/cpukit/score/src/threaddispatchdisablelevel.c
+++ b/cpukit/score/src/threaddispatchdisablelevel.c
@@ -112,12 +112,6 @@ uint32_t _Thread_Dispatch_decrement_disable_level( void )
   cpu_self->thread_dispatch_disable_level = disable_level;
 
   _Giant_Do_release( cpu_self );
-  _Assert(
-    ( disable_level == cpu_self->isr_nest_level
-      && _Giant.owner_cpu != cpu_self )
-    || ( disable_level > cpu_self->isr_nest_level
-      && _Giant.owner_cpu == cpu_self )
-  );
 
   _Profiling_Thread_dispatch_enable( cpu_self, disable_level );
   _ISR_Enable_without_giant( isr_level );



More information about the vc mailing list