summaryrefslogtreecommitdiff
path: root/src/scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scheduler.c')
-rw-r--r--src/scheduler.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/scheduler.c b/src/scheduler.c
index 3a08b72942..27f0fc53f4 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -266,11 +266,6 @@ void rt_schedule(void)
from_thread = rt_current_thread;
rt_current_thread = to_thread;
-#ifdef RT_USING_MODULE
- rt_module_set((rt_current_thread->module_id != RT_NULL) ?
- (rt_module_t)rt_current_thread->module_id : RT_NULL);
-#endif
-
RT_OBJECT_HOOK_CALL(rt_scheduler_hook, (from_thread, to_thread));
/* switch to new thread */