Changeset cefb126 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2010-07-02T14:19:30Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89c57b6
Parents:
fe7abd0 (diff), e3ee9b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    rfe7abd0 rcefb126  
    193193                 * This improves energy saving and hyperthreading.
    194194                 */
    195                
    196                  /* Mark CPU as it was idle this clock tick */
    197195                irq_spinlock_lock(&CPU->lock, false);
    198196                CPU->idle = true;
    199197                irq_spinlock_unlock(&CPU->lock, false);
    200                
    201198                interrupts_enable();
     199               
    202200                /*
    203201                 * An interrupt might occur right now and wake up a thread.
     
    386384        as_t *old_as = AS;
    387385       
    388         ASSERT(!THREAD || irq_spinlock_locked(&THREAD->lock));
     386        ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
    389387        ASSERT(CPU != NULL);
    390388       
     
    457455                        irq_spinlock_unlock(&THREAD->sleep_queue->lock, false);
    458456                       
    459                         /*
    460                          * Check for possible requests for out-of-context
    461                          * invocation.
    462                          *
    463                          */
    464                         if (THREAD->call_me) {
    465                                 THREAD->call_me(THREAD->call_me_with);
    466                                 THREAD->call_me = NULL;
    467                                 THREAD->call_me_with = NULL;
    468                         }
    469                        
    470457                        irq_spinlock_unlock(&THREAD->lock, false);
    471                        
    472458                        break;
    473459               
Note: See TracChangeset for help on using the changeset viewer.