aboutsummaryrefslogtreecommitdiff
path: root/include/linux/power/pm_debug.h
blob: 1cf2eff35d626e9c52bee7cf2e1bb0e10be98cc4 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Copyright (c) 2012, Motorola Mobility Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef __LINUX_POWER_PM_DEBUG_H__
#define __LINUX_POWER_PM_DEBUG_H__

#ifdef CONFIG_PM_DEBUG

/* cleanup gpio wakeup source buffer */
void wakeup_source_gpio_cleanup(void);

/* add a gpio wakeup irq into buffer */
int wakeup_source_gpio_add_irq(unsigned int irq);

/* cleanup gic wakeup source buffer */
void wakeup_source_gic_cleanup(void);

/* add a gic wakeup irq into buffer */
int wakeup_source_gic_add_irq(unsigned int irq);

/* cleanup pm8xxx wakeup source buffer */
void wakeup_source_pm8xxx_cleanup(void);

/* add a pm8xxx wakeup irq into buffer */
int wakeup_source_pm8xxx_add_irq(unsigned int irq);

#else /* !CONFIG_PM_DEBUG */

/* cleanup gpio wakeup source buffer */
static inline void wakeup_source_gpio_cleanup(void) { }

/* add a gpio wakeup irq into buffer */
static inline int wakeup_source_gpio_add_irq(unsigned int irq)
{
	return 0;
}

/* cleanup gic wakeup source buffer */
static inline void wakeup_source_gic_cleanup(void) { }

/* add a gic wakeup irq into buffer */
static inline int wakeup_source_gic_add_irq(unsigned int irq)
{
	return 0;
}

/* cleanup pm8xxx wakeup source buffer */
static inline void wakeup_source_pm8xxx_cleanup(void) { }

/* add a pm8xxx wakeup irq into buffer */
static inline int wakeup_source_pm8xxx_add_irq(unsigned int irq)
{
	return 0;
}

#endif /* CONFIG_PM_DEBUG */
#endif /* __LINUX_POWER_PM_DEBUG_H__ */