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
|
|
|
|
extern int cpu_init_idle(unsigned int cpu);
|
2015-01-26 18:33:44 +00:00
|
|
|
extern int cpu_suspend(unsigned long arg);
|
2014-07-17 09:30:07 +00:00
|
|
|
#else
|
|
|
|
static inline int cpu_init_idle(unsigned int cpu)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
2015-01-26 18:33:44 +00:00
|
|
|
|
|
|
|
static inline int cpu_suspend(unsigned long arg)
|
|
|
|
{
|
|
|
|
return -EOPNOTSUPP;
|
|
|
|
}
|
2014-07-17 09:30:07 +00:00
|
|
|
#endif
|
2015-02-02 15:32:45 +00:00
|
|
|
static inline int arm_cpuidle_suspend(int index)
|
|
|
|
{
|
|
|
|
return cpu_suspend(index);
|
|
|
|
}
|
2014-07-17 09:30:07 +00:00
|
|
|
#endif
|