Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177843459
D61911.1795413024.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
761 B
Referenced Files
None
Subscribers
None
D61911.1795413024.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61911: LinuxKPI: Add <linux/processor.h>
Attached
Detach File
Event Timeline