Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177944833
D61991.1795616467.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D61991.1795616467.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -252,6 +252,16 @@
pr_warning(__VA_ARGS__); \
} while (0)
+#ifdef DEBUG
+#define pr_debug_ratelimited(fmt, ...) do { \
+ static linux_ratelimit_t __ratelimited; \
+ if (linuxkpi_debug && linux_ratelimited(&__ratelimited)) \
+ log(LOG_DEBUG, fmt, ##__VA_ARGS__); \
+} while (0)
+#else
+#define pr_debug_ratelimited(fmt, ...) pr_debug(fmt, ##__VA_ARGS__)
+#endif
+
#ifndef WARN
#define WARN(condition, ...) ({ \
bool __ret_warn_on = (condition); \
diff --git a/sys/compat/linuxkpi/common/include/linux/workqueue.h b/sys/compat/linuxkpi/common/include/linux/workqueue.h
--- a/sys/compat/linuxkpi/common/include/linux/workqueue.h
+++ b/sys/compat/linuxkpi/common/include/linux/workqueue.h
@@ -238,6 +238,7 @@
extern struct workqueue_struct *system_highpri_wq;
extern struct workqueue_struct *system_power_efficient_wq;
extern struct workqueue_struct *system_percpu_wq;
+extern struct workqueue_struct *system_freezable_wq;
extern void linux_init_delayed_work(struct delayed_work *, work_func_t);
extern void linux_work_fn(void *, int);
diff --git a/sys/compat/linuxkpi/common/src/linux_work.c b/sys/compat/linuxkpi/common/src/linux_work.c
--- a/sys/compat/linuxkpi/common/src/linux_work.c
+++ b/sys/compat/linuxkpi/common/src/linux_work.c
@@ -58,6 +58,7 @@
struct workqueue_struct *system_highpri_wq;
struct workqueue_struct *system_power_efficient_wq;
struct workqueue_struct *system_percpu_wq;
+struct workqueue_struct *system_freezable_wq;
struct taskqueue *linux_irq_work_tq;
@@ -753,6 +754,8 @@
system_power_efficient_wq = linux_system_short_wq;
system_unbound_wq = linux_system_short_wq;
system_highpri_wq = linux_system_short_wq;
+ /* There is no freezer: freezable work is ordinary work. */
+ system_freezable_wq = linux_system_short_wq;
}
SYSINIT(linux_work_init, SI_SUB_TASKQ, SI_ORDER_THIRD, linux_work_init, NULL);
@@ -769,6 +772,7 @@
system_power_efficient_wq = NULL;
system_unbound_wq = NULL;
system_highpri_wq = NULL;
+ system_freezable_wq = NULL;
}
SYSUNINIT(linux_work_uninit, SI_SUB_TASKQ, SI_ORDER_THIRD, linux_work_uninit, NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 2:21 PM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41992527
Default Alt Text
D61991.1795616467.diff (2 KB)
Attached To
Mode
D61991: LinuxKPI: Add pr_debug_ratelimited() and system_freezable_wq
Attached
Detach File
Event Timeline