File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,9 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
884
884
{
885
885
rt_base_t level ;
886
886
rt_err_t result = RT_EOK ;
887
+ #ifndef RT_USING_SMP
887
888
extern rt_uint8_t rt_current_priority ;
889
+ #endif
888
890
/* parameter check */
889
891
RT_ASSERT (thread != RT_NULL );
890
892
RT_ASSERT (rt_object_get_type ((rt_object_t )thread ) == RT_Object_Class_Thread );
@@ -910,6 +912,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
910
912
/* insert to schedule ready list */
911
913
rt_schedule_insert_thread (thread );
912
914
915
+ #ifndef RT_USING_SMP
913
916
/* compare the priority with rt_current_priority*/
914
917
if (thread -> current_priority < rt_current_priority )
915
918
{
@@ -919,6 +922,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
919
922
{
920
923
result = RT_EBUSY ;
921
924
}
925
+ #endif
922
926
923
927
/* enable interrupt */
924
928
rt_hw_interrupt_enable (level );
You can’t perform that action at this time.
0 commit comments