Changeset 248fc1a in mainline for generic/src/proc/thread.c
- Timestamp:
- 2006-02-05T13:56:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 444ec64
- Parents:
- e22f561
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/thread.c
re22f561 r248fc1a 138 138 atomic_inc(&nrdy); 139 139 avg = atomic_get(&nrdy) / config.cpu_active; 140 141 spinlock_lock(&cpu->lock); 142 if ((++cpu->nrdy) > avg) { 143 /* 144 * If there are idle halted CPU's, this will wake them up. 145 */ 146 ipi_broadcast(VECTOR_WAKEUP_IPI); 147 } 148 spinlock_unlock(&cpu->lock); 140 atomic_inc(&cpu->nrdy); 149 141 150 142 interrupts_restore(ipl);
Note:
See TracChangeset
for help on using the changeset viewer.