Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108382990
D30706.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
488 B
Referenced Files
None
Subscribers
None
D30706.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h
--- a/sys/compat/linuxkpi/common/include/linux/spinlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h
@@ -104,6 +104,11 @@
#define spin_trylock_irq(_l) \
spin_trylock(_l)
+#define spin_trylock_irqsave(_l, flags) ({ \
+ (flags) = 0; \
+ spin_trylock(_l); \
+})
+
#define spin_lock_nested(_l, _n) do { \
if (SPIN_SKIP()) \
break; \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 8:29 AM (19 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16133131
Default Alt Text
D30706.diff (488 B)
Attached To
Mode
D30706: linuxkpi: Add spin_trylock_irqsave() macro
Attached
Detach File
Event Timeline
Log In to Comment