2014-07-17 09:30:07 +00:00
|
|
|
#ifndef __ASM_CPUIDLE_H
|
|
|
|
#define __ASM_CPUIDLE_H
|
|
|
|
|
2015-02-27 17:54:31 +00:00
|
|
|
#include <asm/proc-fns.h>
|
|
|
|
|
2014-07-17 09:30:07 +00:00
|
|
|
#ifdef CONFIG_CPU_IDLE
|
2015-02-02 15:32:46 +00:00
|
|
|
extern int arm_cpuidle_init(unsigned int cpu);
|
2015-06-18 14:41:32 +00:00
|
|
|
extern int arm_cpuidle_suspend(int index);
|
2014-07-17 09:30:07 +00:00
|
|
|
#else
|
2015-02-02 15:32:46 +00:00
|
|
|
static inline int arm_cpuidle_init(unsigned int cpu)
|
2014-07-17 09:30:07 +00:00
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
2015-01-26 18:33:44 +00:00
|
|
|
|
2015-06-18 14:41:32 +00:00
|
|
|
static inline int arm_cpuidle_suspend(int index)
|
2015-01-26 18:33:44 +00:00
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
2014-07-17 09:30:07 +00:00
|
|
|
#endif
|
|
|
|
#endif
|