aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-01-28 15:53:03 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-02-05 20:43:46 +0000
commit934cb7a3316609380fdea8da73233759f6dfff43 (patch)
treeff747d5c563dec1ea24544cc5e6614369688fc31
parentffdf10fb9cf13464801f2d78d3e1470201394812 (diff)
downloadsrc-934cb7a3316609380fdea8da73233759f6dfff43.tar.gz
src-934cb7a3316609380fdea8da73233759f6dfff43.zip
LinuxKPI: pm.h: add dummy pm_wakeup_event()
Add a dummy implementation of pm_wakeup_event() which is used to notify the power management system about a wakeup (which we currently do not implement yet). Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38239
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h
index 085b180642aa..50e183738574 100644
--- a/sys/compat/linuxkpi/common/include/linux/pm.h
+++ b/sys/compat/linuxkpi/common/include/linux/pm.h
@@ -33,12 +33,15 @@
#ifndef _LINUXKPI_LINUX_PM_H
#define _LINUXKPI_LINUX_PM_H
+#include <linux/kernel.h> /* pr_debug */
#include <asm/atomic.h>
/* Needed but breaks linux_usb.c */
/* #include <linux/completion.h> */
/* #include <linux/wait.h> */
+struct device;
+
typedef struct pm_message {
int event;
} pm_message_t;
@@ -85,4 +88,11 @@ const struct dev_pm_ops _name = { \
}
#endif
+static inline void
+pm_wakeup_event(struct device *dev __unused, unsigned int x __unused)
+{
+
+ pr_debug("%s: TODO\n", __func__);
+}
+
#endif /* _LINUXKPI_LINUX_PM_H */