mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
b2fa8443db
More sched.h dependency culling - this lets us kill a rhashtable-types.h dependency on workqueue.h. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
25 lines
564 B
C
25 lines
564 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_WORKQUEUE_TYPES_H
|
|
#define _LINUX_WORKQUEUE_TYPES_H
|
|
|
|
#include <linux/atomic.h>
|
|
#include <linux/lockdep_types.h>
|
|
#include <linux/timer_types.h>
|
|
#include <linux/types.h>
|
|
|
|
struct workqueue_struct;
|
|
|
|
struct work_struct;
|
|
typedef void (*work_func_t)(struct work_struct *work);
|
|
void delayed_work_timer_fn(struct timer_list *t);
|
|
|
|
struct work_struct {
|
|
atomic_long_t data;
|
|
struct list_head entry;
|
|
work_func_t func;
|
|
#ifdef CONFIG_LOCKDEP
|
|
struct lockdep_map lockdep_map;
|
|
#endif
|
|
};
|
|
|
|
#endif /* _LINUX_WORKQUEUE_TYPES_H */
|