summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/pm_runtime.h
blob: c692fcec1b3c4acc67c2d282fae01f75257b9e45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Public domain. */

#ifndef _LINUX_PM_RUNTIME_H
#define _LINUX_PM_RUNTIME_H

#include <sys/types.h>
#include <sys/device.h>
#include <linux/pm.h>

#define pm_runtime_mark_last_busy(x)
#define pm_runtime_use_autosuspend(x)
#define pm_runtime_dont_use_autosuspend(x)
#define pm_runtime_put_autosuspend(x)
#define pm_runtime_set_autosuspend_delay(x, y)
#define pm_runtime_set_active(x)
#define pm_runtime_allow(x)
#define pm_runtime_put_noidle(x)
#define pm_runtime_forbid(x)
#define pm_runtime_get_noresume(x)
#define pm_runtime_put(x)

static inline int
pm_runtime_get_sync(struct device *dev)
{
	return 0;
}

static inline int
pm_runtime_get_if_in_use(struct device *dev)
{
	return -EINVAL;
}

#endif