Changeset f300523 in mainline for uspace/drv/nic/e1k/e1k.c


Ignore:
Timestamp:
2017-11-29T18:43:10Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39026d7c
Parents:
48b77ed
Message:

Eliminate uses of thread_usleep() in favor of async_usleep(). Obvious cases are in components that don't explicitly create threads.

File:
1 edited

Legend:

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

    r48b77ed rf300523  
    3333 */
    3434
     35#include <async.h>
    3536#include <assert.h>
    3637#include <stdio.h>
     
    3839#include <adt/list.h>
    3940#include <align.h>
    40 #include <thread.h>
    4141#include <byteorder.h>
    4242#include <as.h>
     
    372372                fibril_mutex_unlock(&e1000->ctrl_lock);
    373373               
    374                 thread_usleep(10);
     374                async_usleep(10);
    375375               
    376376                fibril_mutex_lock(&e1000->ctrl_lock);
     
    17241724       
    17251725        /* Wait for the reset */
    1726         thread_usleep(20);
     1726        async_usleep(20);
    17271727       
    17281728        /* check if RST_BIT cleared */
     
    18121812         * transfers to descriptors.
    18131813         */
    1814         thread_usleep(100);
     1814        async_usleep(100);
    18151815       
    18161816        return EOK;
     
    22382238        uint32_t eerd = E1000_REG_READ(e1000, E1000_EERD);
    22392239        while ((eerd & e1000->info.eerd_done) == 0) {
    2240                 thread_usleep(1);
     2240                async_usleep(1);
    22412241                eerd = E1000_REG_READ(e1000, E1000_EERD);
    22422242        }
Note: See TracChangeset for help on using the changeset viewer.