Date: Mon, 08 Dec 2025 18:09:12 +0000 From: Austin Shafer <ashafer@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3bb980089e35 - stable/15 - linuxkpi: add stub implementation of pm_vt_switch_(un)register Message-ID: <69371448.d9f9.2bcc247@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by ashafer: URL: https://cgit.FreeBSD.org/src/commit/?id=3bb980089e3511f94398aee75de4abcebc524668 commit 3bb980089e3511f94398aee75de4abcebc524668 Author: Austin Shafer <ashafer@FreeBSD.org> AuthorDate: 2025-10-28 17:03:18 +0000 Commit: Austin Shafer <ashafer@FreeBSD.org> CommitDate: 2025-12-08 18:08:20 +0000 linuxkpi: add stub implementation of pm_vt_switch_(un)register This adds empty implementations of pm_vt_switch_(un)register which are used by nvidia-drm. We do not need to specify anything here as a VT switch always happens on suspend/resume. Sponsored by: NVIDIA Reviewed by: kbowling (mentor), emaste Differential Revision: https://reviews.freebsd.org/D53400 (cherry picked from commit 75aa13c64aba71f6f26d05e8fcf96e3862d44cde) --- sys/compat/linuxkpi/common/include/linux/pm.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h index c8d943027909..932697e0eda8 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm.h +++ b/sys/compat/linuxkpi/common/include/linux/pm.h @@ -97,4 +97,18 @@ pm_wakeup_event(struct device *dev __unused, unsigned int x __unused) pr_debug("%s: TODO\n", __func__); } +/* + * We do not need to specify anything here as a VT switch always happens on + * suspend/resume. + */ +static inline void +pm_vt_switch_required(struct device *dev __unused, bool required __unused) +{ +} + +static inline void +pm_vt_switch_unregister(struct device *dev __unused) +{ +} + #endif /* _LINUXKPI_LINUX_PM_H */help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69371448.d9f9.2bcc247>
