Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2089 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2081
Line 43... Line 43...
43
 
43
 
44
#define RQ_COUNT        16
44
#define RQ_COUNT        16
45
#define NEEDS_RELINK_MAX    (HZ)
45
#define NEEDS_RELINK_MAX    (HZ)
46
 
46
 
47
/** Scheduler run queue structure. */
47
/** Scheduler run queue structure. */
48
struct runq {
48
typedef struct {
49
    SPINLOCK_DECLARE(lock);
49
    SPINLOCK_DECLARE(lock);
50
    link_t rq_head;     /**< List of ready threads. */
50
    link_t rq_head;     /**< List of ready threads. */
51
    count_t n;      /**< Number of threads in rq_ready. */
51
    count_t n;      /**< Number of threads in rq_ready. */
52
};
52
} runq_t;
53
 
53
 
54
extern atomic_t nrdy;
54
extern atomic_t nrdy;
55
extern void scheduler_init(void);
55
extern void scheduler_init(void);
56
 
56
 
57
extern void scheduler_fpu_lazy_request(void);
57
extern void scheduler_fpu_lazy_request(void);