- 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/proc/scheduler.h
r13fe013 r59e07c91 33 33 #include <time/clock.h> /* HZ */ 34 34 #include <typedefs.h> 35 #include <arch/atomic.h> 35 36 #include <list.h> 36 37 … … 44 45 }; 45 46 46 extern volatile count_t nrdy;47 extern atomic_t nrdy; 47 48 extern void scheduler_init(void); 48 49 -
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.