diff options
| author | qiuyiuestc <[email protected]> | 2010-09-19 23:43:48 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-09-19 23:43:48 +0000 |
| commit | 446799244a2b796dbcd83bf8e557aff4ebaadc7d (patch) | |
| tree | bfff7779005797756a8815a38dcb6db15b043d65 /src/scheduler.c | |
| parent | 3c2c5df6e898ca10107a0c359d8d73e55222449a (diff) | |
module clean up
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@915 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/scheduler.c')
| -rw-r--r-- | src/scheduler.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/scheduler.c b/src/scheduler.c index be71234370..d14328feba 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -38,9 +38,6 @@ rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX]; struct rt_thread* rt_current_thread; rt_uint8_t rt_current_priority; -#ifdef RT_USING_MODULE -extern struct rt_module* rt_current_module; -#endif #if RT_THREAD_PRIORITY_MAX > 32 /* maximun priority level, 256 */ @@ -267,8 +264,8 @@ void rt_schedule() rt_current_thread = to_thread; #ifdef RT_USING_MODULE - rt_current_module = (rt_current_thread->module_parent != RT_NULL) ? - rt_current_thread->module_parent : RT_NULL; + rt_module_set ((rt_current_thread->module_parent != RT_NULL) ? + rt_current_thread->module_parent : RT_NULL); #endif #ifdef RT_USING_HOOK |
