Changes in kernel/generic/src/proc/thread.c [43ac0cc:26aafe8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r43ac0cc r26aafe8 55 55 #include <time/clock.h> 56 56 #include <time/timeout.h> 57 #include <time/delay.h>58 57 #include <config.h> 59 58 #include <arch/interrupt.h> … … 322 321 thread->cpu = NULL; 323 322 thread->flags = flags; 324 thread->nomigrate = 0;325 323 thread->state = Entering; 326 324 … … 483 481 /* Not reached */ 484 482 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--;502 483 } 503 484 … … 931 912 } 932 913 933 sysarg_t sys_thread_udelay(uint32_t usec)934 {935 delay(usec);936 return 0;937 }938 939 914 /** @} 940 915 */
Note:
See TracChangeset
for help on using the changeset viewer.