/[rtmk]/rtmk/sched-fifo.c
ViewVC logotype

Diff of /rtmk/sched-fifo.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jrydberg, Mon Jan 7 02:50:17 2002 UTC revision 1.3 by jrydberg, Thu Feb 21 20:14:42 2002 UTC
# Line 1  Line 1 
1  /* FIFO (first-come first-serve) scheduling policy.  /* FIFO (first-come first-serve) scheduling policy.
2     Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org.     Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@rtmk.org.
3    
4  This program is free software; you can redistribute it and/or modify  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
# Line 106  fifo_remove (struct sched_policy *sp, st Line 106  fifo_remove (struct sched_policy *sp, st
106    /* Insert thread into scheduling policy's run queue and update RUN_MAP.  */    /* Insert thread into scheduling policy's run queue and update RUN_MAP.  */
107    
108    spin_lock (&sp->interlock);    spin_lock (&sp->interlock);
109    whichq = thread->sched_priority;    whichq = (15 - thread->sched_priority);
110    queue_remove (&sp->run_queues [whichq], thread, struct thread *, runq);    queue_remove (&sp->run_queues [whichq], thread, struct thread *, runq);
111    empty_p = queue_empty (&sp->run_queues[whichq]);    empty_p = queue_empty (&sp->run_queues[whichq]);
112    thread->runq_list = 0;    thread->runq_list = 0;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26