git: 1456816425c3 - main - LinuxKPI: Import linux/ratelimit.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Jan 2022 19:50:50 UTC
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=1456816425c35ab1ded97f9b53f17c87ae4a701f
commit 1456816425c35ab1ded97f9b53f17c87ae4a701f
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-12-08 21:05:56 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-10 19:49:38 +0000
LinuxKPI: Import linux/ratelimit.h
Required by drm-kmod.
Obtained from: OpenBSD
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D33560
---
sys/compat/linuxkpi/common/include/linux/ratelimit.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/ratelimit.h b/sys/compat/linuxkpi/common/include/linux/ratelimit.h
new file mode 100644
index 000000000000..a3991a06e6f0
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/ratelimit.h
@@ -0,0 +1,17 @@
+/* Public domain. */
+
+#ifndef _LINUX_RATELIMIT_H
+#define _LINUX_RATELIMIT_H
+
+struct ratelimit_state {
+};
+
+#define DEFINE_RATELIMIT_STATE(name, interval, burst) \
+ int name __used = 1;
+
+#define __ratelimit(x) (1)
+
+#define ratelimit_state_init(x, y, z)
+#define ratelimit_set_flags(x, y)
+
+#endif