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