Changeset 26a8604f in mainline for src/proc/thread.c
- Timestamp:
- 2005-02-25T11:48:31Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 397c77f
- Parents:
- 453ba46
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/proc/thread.c
r453ba46 r26a8604f 47 47 #include <list.h> 48 48 #include <config.h> 49 50 #ifdef __SMP__51 49 #include <arch/interrupt.h> 52 #include <arch/apic.h> 53 #endif /* __SMP__ */ 50 #include <smp/ipi.h> 54 51 55 52 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; … … 123 120 124 121 spinlock_lock(&cpu->lock); 125 if ((++cpu->nrdy) > avg && (config.cpu_active == config.cpu_count)) {122 if ((++cpu->nrdy) > avg) { 126 123 /* 127 124 * If there are idle halted CPU's, this will wake them up. 128 125 */ 129 #ifdef __SMP__130 126 ipi_broadcast(VECTOR_WAKEUP_IPI); 131 #endif /* __SMP__ */132 127 } 133 128 spinlock_unlock(&cpu->lock);
Note:
See TracChangeset
for help on using the changeset viewer.