Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

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

    r598 r679  
    33
    44#include <linux/timer.h>
    5 #include <sound/compat_22.h>
     5#include <linux/completion.h>
     6#include <linux/bitops.h>
     7
     8#define cancel_work_sync(w)     flush_scheduled_work()
    69/* we know this is used below exactly once for at most one waiter */
    710
     
    6366#define create_singlethread_workqueue(name) create_workqueue(name)
    6467#define cancel_delayed_work_sync flush_delayed_work_sync
     68
     69/**
     70 * schedule_work - put work task in global workqueue
     71 * @work: job to be done
     72 *
     73 * Returns %false if @work was already on the kernel-global workqueue and
     74 * %true otherwise.
     75 *
     76 * This puts a job in the kernel-global workqueue if it was not already
     77 * queued and leaves it in the same position on the kernel-global
     78 * workqueue otherwise.
     79 */
     80int schedule_work(struct work_struct *works);
     81
     82bool flush_delayed_work_sync(struct delayed_work *dwork);
     83extern struct workqueue_struct *system_wq;
     84
     85/* I can't find a more suitable replacement... */
     86#define flush_work(work) cancel_work_sync(work)
     87
    6588#endif /* __LINUX_WORKQUEUE_H */
Note: See TracChangeset for help on using the changeset viewer.