git: 7e1245aafeec - main - linuxkpi: Add pm_runtime_resume_and_get

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 08 Jul 2026 12:59:37 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=7e1245aafeece1a56af292c2652c6b835ccb6f10

commit 7e1245aafeece1a56af292c2652c6b835ccb6f10
Author:     Sourojeet A <siri@racha.ca>
AuthorDate: 2026-07-08 12:57:34 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-07-08 12:58:48 +0000

    linuxkpi: Add pm_runtime_resume_and_get
    
    pm_runtime_resume_and_get is used by new versions of amdgpu, and began
    use between Linux kernel version 6.12, and 6.14.
    
    Reviewed by:    dumbbell
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D57463
---
 sys/compat/linuxkpi/common/include/linux/pm_runtime.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
index 6114b7b159d7..8c7d9f3a8e1c 100644
--- a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
+++ b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
@@ -51,4 +51,10 @@ pm_runtime_suspended(struct device *dev)
 	return 0;
 }
 
+static inline int
+pm_runtime_resume_and_get(struct device *dev)
+{
+	return 0;
+}
+
 #endif	/* _LINUXKPI_LINUX_PM_RUNTIME_H_ */