Subversion Repositories HelenOS

Rev

Rev 309 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 309 Rev 410
Line 37... Line 37...
37
#define RQ_COUNT        16
37
#define RQ_COUNT        16
38
#define NEEDS_RELINK_MAX    (HZ)
38
#define NEEDS_RELINK_MAX    (HZ)
39
 
39
 
40
struct runq {
40
struct runq {
41
    spinlock_t lock;
41
    spinlock_t lock;
42
    link_t rq_head;
42
    link_t rq_head;     /**< List of ready threads. */
43
    int n;
43
    int n;          /**< Number of threads in rq_ready. */
44
};
44
};
45
 
45
 
46
extern volatile count_t nrdy;
46
extern volatile count_t nrdy;
47
 
47
 
48
static thread_t *find_best_thread(void);
48
static thread_t *find_best_thread(void);