xv6-l/proc.c
static void
wakeup1(void *chan)
{
  struct proc *p;

  for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
    if(p->state == SLEEPING && p->chan == chan)
    {
      p->state = RUNNABLE;

      //brand new
      if(p->priority<NPROCQ-1)
        p->priority++;
      qpush(p);

    }
}
//PAGEBREAK!
// Wake up all processes sleeping on chan.
// The ptable lock must be held.
PAGEBREAK.
Wake up all processes sleeping on chan.
The ptable lock must be held.
PAGEBREAK . Wake up all processes sleeping on chan . The ptable lock must be held .
static void
wakeup1(void *chan)
{
  struct proc *p;
  for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
    if(p->state == SLEEPING && p->chan == chan)
    {
      p->state = RUNNABLE;
      if(p->priority<NPROCQ-1)
        p->priority++;
      qpush(p);
    }
}
static void wakeup1 ( void * chan ) { struct proc * p ; for ( p = ptable . proc ; p < & ptable . proc [ NPROC ] ; p ++ ) if ( p -> state == SLEEPING && p -> chan == chan ) { p -> state = RUNNABLE ; if ( p -> priority < NPROCQ - 1 ) p -> priority ++ ; qpush ( p ) ; } }
PAGEBREAK!
PAGEBREAK!
//brand new