Changes in kernel/generic/src/proc/thread.c [26aafe8:55b77d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r26aafe8 r55b77d9 55 55 #include <time/clock.h> 56 56 #include <time/timeout.h> 57 #include <time/delay.h> 57 58 #include <config.h> 58 59 #include <arch/interrupt.h> … … 259 260 */ 260 261 261 list_append(&thread->rq_link, &cpu->rq[i].rq _head);262 list_append(&thread->rq_link, &cpu->rq[i].rq); 262 263 cpu->rq[i].n++; 263 264 irq_spinlock_unlock(&(cpu->rq[i].lock), true); … … 321 322 thread->cpu = NULL; 322 323 thread->flags = flags; 324 thread->nomigrate = 0; 323 325 thread->state = Entering; 324 326 … … 421 423 atomic_inc(&task->lifecount); 422 424 423 list_append(&thread->th_link, &task->th _head);425 list_append(&thread->th_link, &task->threads); 424 426 425 427 irq_spinlock_pass(&task->lock, &threads_lock); … … 481 483 /* Not reached */ 482 484 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--; 483 502 } 484 503 … … 912 931 } 913 932 933 sysarg_t sys_thread_udelay(uint32_t usec) 934 { 935 delay(usec); 936 return 0; 937 } 938 914 939 /** @} 915 940 */
Note:
See TracChangeset
for help on using the changeset viewer.