Changeset 338 for trunk/kernel


Ignore:
Timestamp:
Aug 7, 2017, 1:33:12 PM (7 years ago)
Author:
max@…
Message:

Not sure what Alain meant to do, but disable this for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r337 r338  
    644644bool_t thread_check_sched()
    645645{
    646         thread_t * this = CURRENT_THREAD;
     646    thread_t * this = CURRENT_THREAD;
    647647
    648648    // check locks count
    649         if( (this->local_locks != 0) || (this->remote_locks != 0) ) return false;
    650 
     649    if( (this->local_locks != 0) || (this->remote_locks != 0) )
     650        return false;
     651
     652    if( this->flags & THREAD_FLAG_SCHED )
     653        sched_yield( NULL );
     654
     655    return true;
     656
     657#if 0
    651658    // compute elapsed time, taking into account 32 bits register wrap
    652659    uint32_t elapsed;
     
    662669        if( elapsed < CONFIG_CORE_CHECK_EVERY ) return false;
    663670    else                                    return true;
     671#endif
    664672}
    665673
Note: See TracChangeset for help on using the changeset viewer.