Ignore:
Timestamp:
May 8, 2013, 5:10:33 PM (12 years ago)
Author:
David Azarewicz
Message:

Fixed up timer functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/apm.c

    r153 r157  
    104104  int p;
    105105  int d;
     106  TIMER Timer;
    106107
    107108  if (suspended) return;
     
    115116    for (p = 0; p <= ai->port_max; p++) {
    116117      /* wait until all active commands have completed on this port */
     118      timer_init(&Timer, 250);
    117119      while (ahci_port_busy(ai, p)) {
    118         msleep(250);
     120        if (timer_check_and_block(&Timer)) break;
    119121      }
    120122
Note: See TracChangeset for help on using the changeset viewer.