aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2021-12-08 21:05:56 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2022-01-10 19:49:38 +0000
commit1456816425c35ab1ded97f9b53f17c87ae4a701f (patch)
treef318ba0e0fc8c8f1bf511db11c4e5febf2490e51
parentf9c8b5880d2ceef22a02611efa01e96ac71da42b (diff)
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
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ratelimit.h17
1 files changed, 17 insertions, 0 deletions
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