Skip to content

Commit

Permalink
move ide_intr lower
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Sep 8, 2006
1 parent 4194835 commit 50f8850
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ ide_init(void)
disk_1_present = ide_probe_disk1();
}

// Interrupt handler - wake up the request that just finished.
void
ide_intr(void)
{
acquire(&ide_lock);
wakeup(&request[tail]);
release(&ide_lock);
}

// Probe to see if disk 1 exists (we assume disk 0 exists).
static int
ide_probe_disk1(void)
Expand All @@ -95,6 +86,15 @@ ide_probe_disk1(void)
return x < 1000;
}

// Interrupt handler - wake up the request that just finished.
void
ide_intr(void)
{
acquire(&ide_lock);
wakeup(&request[tail]);
release(&ide_lock);
}

// Start the next request in the queue.
static void
ide_start_request (void)
Expand Down

0 comments on commit 50f8850

Please sign in to comment.