Rev 534 | Rev 775 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 534 | Rev 623 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #define RQ_COUNT 16 |
38 | #define RQ_COUNT 16 |
| 39 | #define NEEDS_RELINK_MAX (HZ) |
39 | #define NEEDS_RELINK_MAX (HZ) |
| 40 | 40 | ||
| 41 | /** Scheduler run queue structure. */ |
41 | /** Scheduler run queue structure. */ |
| 42 | struct runq { |
42 | struct runq { |
| 43 | spinlock_t lock; |
43 | SPINLOCK_DECLARE(lock); |
| 44 | link_t rq_head; /**< List of ready threads. */ |
44 | link_t rq_head; /**< List of ready threads. */ |
| 45 | count_t n; /**< Number of threads in rq_ready. */ |
45 | count_t n; /**< Number of threads in rq_ready. */ |
| 46 | }; |
46 | }; |
| 47 | 47 | ||
| 48 | extern atomic_t nrdy; |
48 | extern atomic_t nrdy; |