diff options
Diffstat (limited to 'c/src/exec/itron/src/rot_rdq.c')
-rw-r--r-- | c/src/exec/itron/src/rot_rdq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/exec/itron/src/rot_rdq.c b/c/src/exec/itron/src/rot_rdq.c index ac6d89d55f..35008d53a2 100644 --- a/c/src/exec/itron/src/rot_rdq.c +++ b/c/src/exec/itron/src/rot_rdq.c @@ -27,15 +27,15 @@ ER rot_rdq( PRI priority; + if (( tskpri <= 0 ) || ( tskpri >= 256 )) + return E_PAR; + _Thread_Disable_dispatch(); /* * Yield of processor will rotate the queue for this processor. */ - if (( tskpri <= 0 ) || ( tskpri >= 256 )) - _ITRON_return_errorno( E_PAR ); - priority = _ITRON_Task_Core_to_Priority(_Thread_Executing->current_priority); if ( priority == tskpri ) _Thread_Yield_processor(); |