git: 2db63c396d37 - stable/13 - LinuxKPI: Import linux/ratelimit.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jan 2022 19:36:37 UTC
The branch stable/13 has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=2db63c396d37dd9a18ba640ec76cc09085deacb8
commit 2db63c396d37dd9a18ba640ec76cc09085deacb8
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-12-08 21:05:56 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-22 19:34:37 +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
(cherry picked from commit 1456816425c35ab1ded97f9b53f17c87ae4a701f)
---
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