blob: e092d1359d94e2f73bcf40432eb7924b59e1c1a9 [file] [log] [blame]
Robert Lee2da50e62012-05-21 17:50:28 -05001/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 * Copyright 2012 Linaro Ltd.
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
13#include <linux/cpuidle.h>
14
15#ifdef CONFIG_CPU_IDLE
16extern int imx_cpuidle_init(struct cpuidle_driver *drv);
Shawn Guo12bb34402012-12-04 22:55:14 +080017extern int imx6q_cpuidle_init(void);
Robert Lee2da50e62012-05-21 17:50:28 -050018#else
19static inline int imx_cpuidle_init(struct cpuidle_driver *drv)
20{
21 return -ENODEV;
22}
Shawn Guo12bb34402012-12-04 22:55:14 +080023static inline int imx6q_cpuidle_init(void)
24{
25 return -ENODEV;
26}
Robert Lee2da50e62012-05-21 17:50:28 -050027#endif