Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 2 | #ifndef __ASM_CPUIDLE_H |
3 | #define __ASM_CPUIDLE_H | ||||
4 | |||||
Lorenzo Pieralisi | af4819a | 2015-02-27 17:54:31 +0000 | [diff] [blame] | 5 | #include <asm/proc-fns.h> |
6 | |||||
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 7 | #ifdef CONFIG_CPU_IDLE |
Daniel Lezcano | c9d6216 | 2015-02-02 16:32:46 +0100 | [diff] [blame] | 8 | extern int arm_cpuidle_init(unsigned int cpu); |
Sudeep Holla | af391b1 | 2015-06-18 15:41:32 +0100 | [diff] [blame] | 9 | extern int arm_cpuidle_suspend(int index); |
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 10 | #else |
Daniel Lezcano | c9d6216 | 2015-02-02 16:32:46 +0100 | [diff] [blame] | 11 | static inline int arm_cpuidle_init(unsigned int cpu) |
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 12 | { |
13 | return -EOPNOTSUPP; | ||||
14 | } | ||||
Lorenzo Pieralisi | af3cfdb | 2015-01-26 18:33:44 +0000 | [diff] [blame] | 15 | |
Sudeep Holla | af391b1 | 2015-06-18 15:41:32 +0100 | [diff] [blame] | 16 | static inline int arm_cpuidle_suspend(int index) |
Lorenzo Pieralisi | af3cfdb | 2015-01-26 18:33:44 +0000 | [diff] [blame] | 17 | { |
18 | return -EOPNOTSUPP; | ||||
19 | } | ||||
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 20 | #endif |
Lorenzo Pieralisi | d64f84f | 2014-07-17 10:30:07 +0100 | [diff] [blame] | 21 | #endif |