Page MenuHomeFreeBSD

D61911.1795413024.diff
No OneTemporary

Authored By
Unknown
Size
761 B
Referenced Files
None
Subscribers
None

D61911.1795413024.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/processor.h b/sys/compat/linuxkpi/common/include/linux/processor.h
new file mode 100644
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/processor.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2026 The FreeBSD Foundation
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#ifndef _LINUXKPI_LINUX_PROCESSOR_H_
+#define _LINUXKPI_LINUX_PROCESSOR_H_
+
+#include <asm/processor.h>
+
+#define spin_begin() do { } while (0)
+#define spin_cpu_relax() cpu_relax()
+#define spin_end() do { } while (0)
+
+#define spin_until_cond(cond) do { \
+ spin_begin(); \
+ while (!(cond)) \
+ spin_cpu_relax(); \
+ spin_end(); \
+} while (0)
+
+#endif /* _LINUXKPI_LINUX_PROCESSOR_H_ */

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 5:50 AM (23 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41924146
Default Alt Text
D61911.1795413024.diff (761 B)

Event Timeline