Page MenuHomeFreeBSD

D30024.diff
No OneTemporary

D30024.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h
--- a/sys/compat/linuxkpi/common/include/linux/interrupt.h
+++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h
@@ -208,6 +208,7 @@
unsigned long data);
extern void tasklet_enable(struct tasklet_struct *);
extern void tasklet_disable(struct tasklet_struct *);
+extern void tasklet_disable_nosync(struct tasklet_struct *);
extern int tasklet_trylock(struct tasklet_struct *);
extern void tasklet_unlock(struct tasklet_struct *);
extern void tasklet_unlock_wait(struct tasklet_struct *ts);
diff --git a/sys/compat/linuxkpi/common/src/linux_tasklet.c b/sys/compat/linuxkpi/common/src/linux_tasklet.c
--- a/sys/compat/linuxkpi/common/src/linux_tasklet.c
+++ b/sys/compat/linuxkpi/common/src/linux_tasklet.c
@@ -227,6 +227,13 @@
tasklet_unlock_wait(ts);
}
+void
+tasklet_disable_nosync(struct tasklet_struct *ts)
+{
+ atomic_inc(&ts->count);
+ barrier();
+}
+
int
tasklet_trylock(struct tasklet_struct *ts)
{

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 8:53 AM (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15792766
Default Alt Text
D30024.diff (1 KB)

Event Timeline