diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:38:03 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:38:03 +0000 |
| commit | 3b05a10cda601c2f80b3a20abb14e41fa434bca2 (patch) | |
| tree | 39eb943290c17aef9d130d57c1153ea31530a9dd /sys/external/bsd/common/include/linux | |
| parent | 4a0c9401a698b08bfcbeacef6428d2022ac8eee8 (diff) | |
i915: another whack at it
Diffstat (limited to 'sys/external/bsd/common/include/linux')
| -rw-r--r-- | sys/external/bsd/common/include/linux/list.h | 7 | ||||
| -rw-r--r-- | sys/external/bsd/common/include/linux/workqueue.h | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/sys/external/bsd/common/include/linux/list.h b/sys/external/bsd/common/include/linux/list.h index a82f3b64f5f..58310e9d956 100644 --- a/sys/external/bsd/common/include/linux/list.h +++ b/sys/external/bsd/common/include/linux/list.h @@ -1,4 +1,4 @@ -/* $NetBSD: list.h,v 1.30 2021/12/19 11:37:41 riastradh Exp $ */ +/* $NetBSD: list.h,v 1.31 2021/12/19 11:38:03 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -283,6 +283,11 @@ list_del_init(struct list_head *node) (VAR) != (HEAD); \ (VAR) = list_next((VAR))) +#define list_for_each_prev(VAR, HEAD) \ + for ((VAR) = list_last((HEAD)); \ + (VAR) != (HEAD); \ + (VAR) = list_prev((VAR))) + #define list_for_each_safe(VAR, NEXT, HEAD) \ for ((VAR) = list_first((HEAD)); \ ((VAR) != (HEAD)) && ((NEXT) = list_next((VAR)), 1); \ diff --git a/sys/external/bsd/common/include/linux/workqueue.h b/sys/external/bsd/common/include/linux/workqueue.h index 4431a5affe3..497619966bb 100644 --- a/sys/external/bsd/common/include/linux/workqueue.h +++ b/sys/external/bsd/common/include/linux/workqueue.h @@ -1,4 +1,4 @@ -/* $NetBSD: workqueue.h,v 1.23 2021/12/19 11:10:17 riastradh Exp $ */ +/* $NetBSD: workqueue.h,v 1.24 2021/12/19 11:38:03 riastradh Exp $ */ /*- * Copyright (c) 2013, 2018 The NetBSD Foundation, Inc. @@ -59,6 +59,7 @@ #define queue_work linux_queue_work #define schedule_delayed_work linux_schedule_delayed_work #define schedule_work linux_schedule_work +#define system_highpri_wq linux_system_highpri_wq #define system_long_wq linux_system_long_wq #define system_power_efficient_wq linux_system_power_efficient_wq #define system_unbound_wq linux_system_unbound_wq @@ -95,16 +96,19 @@ struct rcu_work { #define WQ_MEM_RECLAIM __BIT(2) #define WQ_UNBOUND __BIT(3) +#define WQ_UNBOUND_MAX_ACTIVE 0 + static inline struct delayed_work * to_delayed_work(struct work_struct *work) { return container_of(work, struct delayed_work, work); } -extern struct workqueue_struct *system_wq; +extern struct workqueue_struct *system_highpri_wq; extern struct workqueue_struct *system_long_wq; extern struct workqueue_struct *system_power_efficient_wq; extern struct workqueue_struct *system_unbound_wq; +extern struct workqueue_struct *system_wq; int linux_workqueue_init(void); void linux_workqueue_fini(void); |
