Ignore:
File:
1 edited

Legend:

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

    r55b77d9 r26aafe8  
    5555#include <time/clock.h>
    5656#include <time/timeout.h>
    57 #include <time/delay.h>
    5857#include <config.h>
    5958#include <arch/interrupt.h>
     
    260259         */
    261260       
    262         list_append(&thread->rq_link, &cpu->rq[i].rq);
     261        list_append(&thread->rq_link, &cpu->rq[i].rq_head);
    263262        cpu->rq[i].n++;
    264263        irq_spinlock_unlock(&(cpu->rq[i].lock), true);
     
    322321        thread->cpu = NULL;
    323322        thread->flags = flags;
    324         thread->nomigrate = 0;
    325323        thread->state = Entering;
    326324       
     
    423421                atomic_inc(&task->lifecount);
    424422       
    425         list_append(&thread->th_link, &task->threads);
     423        list_append(&thread->th_link, &task->th_head);
    426424       
    427425        irq_spinlock_pass(&task->lock, &threads_lock);
     
    483481        /* Not reached */
    484482        while (true);
    485 }
    486 
    487 /** Prevent the current thread from being migrated to another processor. */
    488 void thread_migration_disable(void)
    489 {
    490         ASSERT(THREAD);
    491 
    492         THREAD->nomigrate++;
    493 }
    494 
    495 /** Allow the current thread to be migrated to another processor. */
    496 void thread_migration_enable(void)
    497 {
    498         ASSERT(THREAD);
    499         ASSERT(THREAD->nomigrate > 0);
    500 
    501         THREAD->nomigrate--;
    502483}
    503484
     
    931912}
    932913
    933 sysarg_t sys_thread_udelay(uint32_t usec)
    934 {
    935         delay(usec);
    936         return 0;
    937 }
    938 
    939914/** @}
    940915 */
Note: See TracChangeset for help on using the changeset viewer.