Ignore:
Timestamp:
Jul 24, 2021, 3:42:01 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge in changes from uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/workqueue.h

    r679 r689  
    55#include <linux/completion.h>
    66#include <linux/bitops.h>
     7
    78
    89#define cancel_work_sync(w)     flush_scheduled_work()
     
    2829        struct completion thread_exited;
    2930};
     31
    3032struct delayed_work {
    3133        struct work_struct work;
     34        struct timer_list timer;
     35
     36        /* target workqueue and CPU ->timer uses to queue ->work */
     37        struct workqueue_struct *wq;
     38        int cpu;
    3239};
    3340
     
    8693#define flush_work(work) cancel_work_sync(work)
    8794
     95#define container_of(ptr, type, member) \
     96( (type *)( (char *)ptr - offsetof(type,member) ) )
     97
     98static inline struct delayed_work *to_delayed_work(struct work_struct *work)
     99{
     100        return container_of(work, struct delayed_work, work);
     101}
     102
    88103#endif /* __LINUX_WORKQUEUE_H */
Note: See TracChangeset for help on using the changeset viewer.