Subversion Repositories HelenOS-historic

Rev

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

Rev 475 Rev 483
Line 48... Line 48...
48
#include <print.h>
48
#include <print.h>
49
#include <debug.h>
49
#include <debug.h>
50
 
50
 
51
atomic_t nrdy;
51
atomic_t nrdy;
52
 
52
 
53
 
-
 
54
/** Take actions before new thread runs
53
/** Take actions before new thread runs
55
 *
54
 *
56
 * Perform actions that need to be
55
 * Perform actions that need to be
57
 * taken before the newly selected
56
 * taken before the newly selected
58
 * tread is passed control.
57
 * tread is passed control.
Line 114... Line 113...
114
 * policy.
113
 * policy.
115
 *
114
 *
116
 * @return Thread to be scheduled.
115
 * @return Thread to be scheduled.
117
 *
116
 *
118
 */
117
 */
119
static struct thread *find_best_thread(void)
118
static thread_t *find_best_thread(void)
120
{
119
{
121
    thread_t *t;
120
    thread_t *t;
122
    runq_t *r;
121
    runq_t *r;
123
    int i, n;
122
    int i, n;
124
 
123