diff options
| author | [email protected] <[email protected]> | 2011-10-05 07:00:04 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-10-05 07:00:04 +0000 |
| commit | 130da0f1d9904c1a47df179d22ae56c7f47bd816 (patch) | |
| tree | c93e49b42f0d026da8f55e59c417dd5905bc470a /src | |
| parent | cbfe1d64de7750de34a13c85b704f26184884c07 (diff) | |
RT_DEBUG_NOT_IN_INTERRUPT is only executed when rt_thread_defunct is not empty.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1739 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src')
| -rw-r--r-- | src/idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idle.c b/src/idle.c index b847ff1f60..b0355f9b8b 100644 --- a/src/idle.c +++ b/src/idle.c @@ -60,8 +60,6 @@ void rt_thread_idle_sethook(void (*hook)()) */ void rt_thread_idle_excute(void) { - RT_DEBUG_NOT_IN_INTERRUPT; - /* check the defunct thread list */ if (!rt_list_isempty(&rt_thread_defunct)) { @@ -70,6 +68,8 @@ void rt_thread_idle_excute(void) #ifdef RT_USING_MODULE rt_module_t module = RT_NULL; #endif + RT_DEBUG_NOT_IN_INTERRUPT; + /* disable interrupt */ lock = rt_hw_interrupt_disable(); |
