mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
make cancel_rearming_delayed_work() work on any workqueue, not just keventd_wq
cancel_rearming_delayed_workqueue(wq, dwork) doesn't need the first parameter. We don't hang on un-queued dwork any longer, and work->data doesn't change its type. This means we can always figure out "wq" from dwork when it is needed. Remove this parameter, and rename the function to cancel_rearming_delayed_work(). Re-create an inline "obsolete" cancel_rearming_delayed_workqueue(wq) which just calls cancel_rearming_delayed_work(). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a848e3b67c
commit
1634c48f8b
2 changed files with 20 additions and 22 deletions
|
@ -191,9 +191,6 @@ extern int current_is_keventd(void);
|
|||
extern int keventd_up(void);
|
||||
|
||||
extern void init_workqueues(void);
|
||||
void cancel_rearming_delayed_work(struct delayed_work *work);
|
||||
void cancel_rearming_delayed_workqueue(struct workqueue_struct *,
|
||||
struct delayed_work *);
|
||||
int execute_in_process_context(work_func_t fn, struct execute_work *);
|
||||
|
||||
/*
|
||||
|
@ -212,4 +209,14 @@ static inline int cancel_delayed_work(struct delayed_work *work)
|
|||
return ret;
|
||||
}
|
||||
|
||||
extern void cancel_rearming_delayed_work(struct delayed_work *work);
|
||||
|
||||
/* Obsolete. use cancel_rearming_delayed_work() */
|
||||
static inline
|
||||
void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq,
|
||||
struct delayed_work *work)
|
||||
{
|
||||
cancel_rearming_delayed_work(work);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue