xref: /openbmc/linux/include/soc/imx/cpuidle.h (revision 171fa692)
1 /*
2  * Copyright 2016 Pengutronix, <kernel@pengutronix.de>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  */
13 
14 #ifndef __SOC_IMX_CPUIDLE_H__
15 #define __SOC_IMX_CPUIDLE_H__
16 
17 #if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SOC_IMX6Q)
18 void imx6q_cpuidle_fec_irqs_used(void);
19 void imx6q_cpuidle_fec_irqs_unused(void);
20 #else
21 static inline void imx6q_cpuidle_fec_irqs_used(void) { }
22 static inline void imx6q_cpuidle_fec_irqs_unused(void) { }
23 #endif
24 
25 #endif /* __SOC_IMX_CPUIDLE_H__ */
26