Changeset e3f41b6 in mainline for src/proc/thread.c
- Timestamp:
- 2005-06-06T20:01:57Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0bf501
- Parents:
- d47f0e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/proc/thread.c
rd47f0e1 re3f41b6 50 50 #include <smp/ipi.h> 51 51 #include <arch/faddr.h> 52 #include <arch/atomic.h> 52 53 53 54 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; /**< Thread states */ … … 135 136 spinlock_unlock(&r->lock); 136 137 137 spinlock_lock(&nrdylock); 138 avg = ++nrdy / config.cpu_active; 139 spinlock_unlock(&nrdylock); 138 atomic_inc(&nrdy); 139 avg = nrdy / config.cpu_active; 140 140 141 141 spinlock_lock(&cpu->lock);
Note:
See TracChangeset
for help on using the changeset viewer.