Changeset 5f97ef44 in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2018-07-13T14:10:15Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3787a0
Parents:
9912f49
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
Message:

Sleep is more natural as part of the fibril API.
(the implementation will move later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    r9912f49 r5f97ef44  
    372372                fibril_mutex_unlock(&e1000->ctrl_lock);
    373373
    374                 async_usleep(10);
     374                fibril_usleep(10);
    375375
    376376                fibril_mutex_lock(&e1000->ctrl_lock);
     
    17261726
    17271727        /* Wait for the reset */
    1728         async_usleep(20);
     1728        fibril_usleep(20);
    17291729
    17301730        /* check if RST_BIT cleared */
     
    18141814         * transfers to descriptors.
    18151815         */
    1816         async_usleep(100);
     1816        fibril_usleep(100);
    18171817
    18181818        return EOK;
     
    22402240        uint32_t eerd = E1000_REG_READ(e1000, E1000_EERD);
    22412241        while ((eerd & e1000->info.eerd_done) == 0) {
    2242                 async_usleep(1);
     2242                fibril_usleep(1);
    22432243                eerd = E1000_REG_READ(e1000, E1000_EERD);
    22442244        }
Note: See TracChangeset for help on using the changeset viewer.