diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-12 09:25:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 16:26:06 +0200 |
commit | 49cdf40afa1b67b1eedbec26b73c59f54dc882cd (patch) | |
tree | d5f27895d8bb30533150c66fd019a18291a52e6a /cpukit/score/src/pheapwalk.c | |
parent | score: Add _Chain_Insert_ordered_unprotected() (diff) | |
download | rtems-49cdf40afa1b67b1eedbec26b73c59f54dc882cd.tar.bz2 |
score: Add and use _Thread_Dispatch_is_enabled()
Delete _Thread_Dispatch_in_critical_section() and
_Thread_Is_dispatching_enabled().
Diffstat (limited to 'cpukit/score/src/pheapwalk.c')
-rw-r--r-- | cpukit/score/src/pheapwalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/pheapwalk.c b/cpukit/score/src/pheapwalk.c index 12b2a6d2a8..d06d8bca67 100644 --- a/cpukit/score/src/pheapwalk.c +++ b/cpukit/score/src/pheapwalk.c @@ -37,7 +37,7 @@ bool _Protected_heap_Walk( * * NOTE: Dispatching is also disabled during initialization. */ - if ( _Thread_Dispatch_in_critical_section() == false ) { + if ( _Thread_Dispatch_is_enabled() ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); |