Date: Sat, 1 May 2021 00:57:32 GMT From: Neel Chauhan <nc@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1fbf4377a410 - stable/13 - linuxkpi: Introduce tasklet_disable_nosync() Message-ID: <202105010057.1410vWF9074383@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by nc (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=1fbf4377a41096cc1a0fa46b35f7afb4ed21ee98 commit 1fbf4377a41096cc1a0fa46b35f7afb4ed21ee98 Author: Neel Chauhan <nc@FreeBSD.org> AuthorDate: 2021-04-28 15:05:57 +0000 Commit: Neel Chauhan <nc@FreeBSD.org> CommitDate: 2021-05-01 00:55:47 +0000 linuxkpi: Introduce tasklet_disable_nosync() This is needed for the drm-kmod 5.5 update. Reviewed by: hselasky (src) Differential Revision: https://reviews.freebsd.org/D30024 (cherry picked from commit 9781105bea58b8bce53ba766850c5f023b34c43c) --- sys/compat/linuxkpi/common/include/linux/interrupt.h | 1 + sys/compat/linuxkpi/common/src/linux_tasklet.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h index ca26cd24ffda..fc1241240b39 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -208,6 +208,7 @@ extern void tasklet_init(struct tasklet_struct *, tasklet_func_t *, 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 index 5cac8ffd994c..9a4c01737466 100644 --- a/sys/compat/linuxkpi/common/src/linux_tasklet.c +++ b/sys/compat/linuxkpi/common/src/linux_tasklet.c @@ -227,6 +227,13 @@ tasklet_disable(struct tasklet_struct *ts) tasklet_unlock_wait(ts); } +void +tasklet_disable_nosync(struct tasklet_struct *ts) +{ + atomic_inc(&ts->count); + barrier(); +} + int tasklet_trylock(struct tasklet_struct *ts) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105010057.1410vWF9074383>