Changeset c7e162a in rtems-libbsd for freebsd/sys/dev/mmc/mmcreg.h


Ignore:
Timestamp:
Apr 26, 2018, 1:19:42 PM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
3fac9e9
Parents:
4b14263
Message:

mmc: Optimize mmc_wait_for_req()

Use a self-contained RTEMS binary semaphore instead of msleep() and
wakeup(). This is itself more efficient and in addition allows the use
of mmc_wakeup() in interrupt context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/mmc/mmcreg.h

    r4b14263 rc7e162a  
    5555#ifndef DEV_MMC_MMCREG_H
    5656#define DEV_MMC_MMCREG_H
     57#ifdef __rtems__
     58#include <rtems/thread.h>
     59#endif /* __rtems__ */
    5760
    5861/*
     
    174177        void (*done)(struct mmc_request *); /* Completion function */
    175178        void *done_data;                /* requestor set data */
     179#ifndef __rtems__
    176180        uint32_t flags;
    177181#define MMC_REQ_DONE    1
     182#else /* __rtems__ */
     183        rtems_binary_semaphore req_done;
     184#endif /* __rtems__ */
    178185};
    179186
Note: See TracChangeset for help on using the changeset viewer.