Changeset 59e07c91 in mainline for generic/src
- Timestamp:
- 2005-11-10T13:56:26Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0172eba
- Parents:
- 13fe013
- Location:
- generic/src/proc
- Files:
-
- 2 edited
-
scheduler.c (modified) (3 diffs)
-
thread.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/scheduler.c
r13fe013 r59e07c91 49 49 #include <debug.h> 50 50 51 volatile count_t nrdy;51 atomic_t nrdy; 52 52 53 53 … … 182 182 spinlock_unlock(&CPU->lock); 183 183 184 atomic_dec( (int *)&nrdy);184 atomic_dec(&nrdy); 185 185 r->n--; 186 186 … … 558 558 spinlock_unlock(&cpu->lock); 559 559 560 atomic_dec( (int *)&nrdy);560 atomic_dec(&nrdy); 561 561 562 562 r->n--; -
generic/src/proc/thread.c
r13fe013 r59e07c91 137 137 spinlock_unlock(&r->lock); 138 138 139 atomic_inc( (int *)&nrdy);139 atomic_inc(&nrdy); 140 140 avg = nrdy / config.cpu_active; 141 141
Note:
See TracChangeset
for help on using the changeset viewer.
