2007-10-03 18:58:00 -04:00
|
|
|
/*
|
|
|
|
|
* cpuidle.h - a generic framework for CPU idle power management
|
|
|
|
|
*
|
|
|
|
|
* (C) 2007 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
|
|
|
|
|
* Shaohua Li <shaohua.li@intel.com>
|
|
|
|
|
* Adam Belay <abelay@novell.com>
|
|
|
|
|
*
|
|
|
|
|
* This code is licenced under the GPL.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _LINUX_CPUIDLE_H
|
|
|
|
|
#define _LINUX_CPUIDLE_H
|
|
|
|
|
|
|
|
|
|
#include <linux/percpu.h>
|
|
|
|
|
#include <linux/list.h>
|
2012-03-20 15:22:42 -05:00
|
|
|
#include <linux/hrtimer.h>
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2013-02-27 13:18:50 -05:00
|
|
|
#define CPUIDLE_STATE_MAX 10
|
2007-10-03 18:58:00 -04:00
|
|
|
#define CPUIDLE_NAME_LEN 16
|
2008-02-11 17:46:31 -08:00
|
|
|
#define CPUIDLE_DESC_LEN 32
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2011-05-26 13:46:22 -04:00
|
|
|
struct module;
|
|
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
struct cpuidle_device;
|
2011-10-28 16:20:42 +05:30
|
|
|
struct cpuidle_driver;
|
2007-10-03 18:58:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
|
* CPUIDLE DEVICE INTERFACE *
|
|
|
|
|
****************************/
|
|
|
|
|
|
2019-11-04 12:16:17 +01:00
|
|
|
#define CPUIDLE_STATE_DISABLED_BY_USER BIT(0)
|
|
|
|
|
#define CPUIDLE_STATE_DISABLED_BY_DRIVER BIT(1)
|
|
|
|
|
|
2011-10-28 16:20:33 +05:30
|
|
|
struct cpuidle_state_usage {
|
2012-07-03 19:05:31 +02:00
|
|
|
unsigned long long disable;
|
2011-10-28 16:20:33 +05:30
|
|
|
unsigned long long usage;
|
2019-11-07 15:25:12 +01:00
|
|
|
u64 time_ns;
|
2018-12-10 12:30:23 +01:00
|
|
|
unsigned long long above; /* Number of times it's been too deep */
|
|
|
|
|
unsigned long long below; /* Number of times it's been too shallow */
|
2020-09-22 12:34:16 -06:00
|
|
|
unsigned long long rejected; /* Number of times idle entry was rejected */
|
2018-03-14 12:27:21 +01:00
|
|
|
#ifdef CONFIG_SUSPEND
|
|
|
|
|
unsigned long long s2idle_usage;
|
|
|
|
|
unsigned long long s2idle_time; /* in US */
|
|
|
|
|
#endif
|
2011-10-28 16:20:33 +05:30
|
|
|
};
|
|
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
struct cpuidle_state {
|
|
|
|
|
char name[CPUIDLE_NAME_LEN];
|
2008-02-11 17:46:31 -08:00
|
|
|
char desc[CPUIDLE_DESC_LEN];
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2021-03-29 20:15:19 +02:00
|
|
|
s64 exit_latency_ns;
|
|
|
|
|
s64 target_residency_ns;
|
2007-10-03 18:58:00 -04:00
|
|
|
unsigned int flags;
|
|
|
|
|
unsigned int exit_latency; /* in US */
|
2012-03-13 19:55:10 +01:00
|
|
|
int power_usage; /* in mW */
|
2007-10-03 18:58:00 -04:00
|
|
|
unsigned int target_residency; /* in US */
|
|
|
|
|
|
|
|
|
|
int (*enter) (struct cpuidle_device *dev,
|
2011-10-28 16:20:42 +05:30
|
|
|
struct cpuidle_driver *drv,
|
2011-10-28 16:20:09 +05:30
|
|
|
int index);
|
2012-03-13 19:55:09 +01:00
|
|
|
|
|
|
|
|
int (*enter_dead) (struct cpuidle_device *dev, int index);
|
2015-02-13 23:50:43 +01:00
|
|
|
|
|
|
|
|
/*
|
2017-08-10 00:14:45 +02:00
|
|
|
* CPUs execute ->enter_s2idle with the local tick or entire timekeeping
|
2015-02-13 23:50:43 +01:00
|
|
|
* suspended, so it must not re-enable interrupts at any point (even
|
|
|
|
|
* temporarily) or attempt to change states of clock event devices.
|
2020-07-27 11:25:46 +08:00
|
|
|
*
|
|
|
|
|
* This callback may point to the same function as ->enter if all of
|
|
|
|
|
* the above requirements are met by it.
|
2015-02-13 23:50:43 +01:00
|
|
|
*/
|
2020-07-27 11:25:46 +08:00
|
|
|
int (*enter_s2idle)(struct cpuidle_device *dev,
|
|
|
|
|
struct cpuidle_driver *drv,
|
|
|
|
|
int index);
|
2007-10-03 18:58:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Idle State Flags */
|
2020-08-12 12:22:17 +02:00
|
|
|
#define CPUIDLE_FLAG_NONE (0x00)
|
|
|
|
|
#define CPUIDLE_FLAG_POLLING BIT(0) /* polling state */
|
|
|
|
|
#define CPUIDLE_FLAG_COUPLED BIT(1) /* state applies to multiple cpus */
|
|
|
|
|
#define CPUIDLE_FLAG_TIMER_STOP BIT(2) /* timer is stopped on this state */
|
|
|
|
|
#define CPUIDLE_FLAG_UNUSABLE BIT(3) /* avoid using this state */
|
|
|
|
|
#define CPUIDLE_FLAG_OFF BIT(4) /* disable this state by default */
|
|
|
|
|
#define CPUIDLE_FLAG_TLB_FLUSHED BIT(5) /* idle-state flushes TLBs */
|
2020-09-15 12:32:00 +02:00
|
|
|
#define CPUIDLE_FLAG_RCU_IDLE BIT(6) /* idle-state takes care of RCU */
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2013-06-12 15:08:51 +02:00
|
|
|
struct cpuidle_device_kobj;
|
2013-06-12 15:08:52 +02:00
|
|
|
struct cpuidle_state_kobj;
|
|
|
|
|
struct cpuidle_driver_kobj;
|
2013-06-12 15:08:51 +02:00
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
struct cpuidle_device {
|
2008-05-19 19:09:27 -04:00
|
|
|
unsigned int registered:1;
|
2008-02-06 22:39:44 +01:00
|
|
|
unsigned int enabled:1;
|
2018-10-02 23:42:02 +02:00
|
|
|
unsigned int poll_time_limit:1;
|
2007-10-03 18:58:00 -04:00
|
|
|
unsigned int cpu;
|
2019-03-27 15:35:47 +01:00
|
|
|
ktime_t next_hrtimer;
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2019-07-03 20:51:27 -03:00
|
|
|
int last_state_idx;
|
2019-11-07 15:25:12 +01:00
|
|
|
u64 last_residency_ns;
|
2019-07-03 20:51:26 -03:00
|
|
|
u64 poll_limit_ns;
|
2019-11-16 14:16:12 +01:00
|
|
|
u64 forced_idle_latency_limit_ns;
|
2011-10-28 16:20:33 +05:30
|
|
|
struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX];
|
2007-10-03 18:58:00 -04:00
|
|
|
struct cpuidle_state_kobj *kobjs[CPUIDLE_STATE_MAX];
|
2012-10-31 16:44:48 +00:00
|
|
|
struct cpuidle_driver_kobj *kobj_driver;
|
2013-06-12 15:08:51 +02:00
|
|
|
struct cpuidle_device_kobj *kobj_dev;
|
2007-10-03 18:58:00 -04:00
|
|
|
struct list_head device_list;
|
2012-05-07 17:57:41 -07:00
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
|
|
|
|
cpumask_t coupled_cpus;
|
|
|
|
|
struct cpuidle_coupled *coupled;
|
|
|
|
|
#endif
|
2007-10-03 18:58:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
|
2014-01-08 11:23:35 +00:00
|
|
|
DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev);
|
2007-10-03 18:58:00 -04:00
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
|
* CPUIDLE DRIVER INTERFACE *
|
|
|
|
|
****************************/
|
|
|
|
|
|
|
|
|
|
struct cpuidle_driver {
|
2012-03-26 14:51:27 +02:00
|
|
|
const char *name;
|
2007-10-03 18:58:00 -04:00
|
|
|
struct module *owner;
|
2011-10-28 16:20:42 +05:30
|
|
|
|
2013-03-27 10:22:10 +00:00
|
|
|
/* used by the cpuidle framework to setup the broadcast timer */
|
|
|
|
|
unsigned int bctimer:1;
|
2013-01-15 14:18:04 +01:00
|
|
|
/* states array must be ordered in decreasing power consumption */
|
2011-10-28 16:20:42 +05:30
|
|
|
struct cpuidle_state states[CPUIDLE_STATE_MAX];
|
|
|
|
|
int state_count;
|
|
|
|
|
int safe_state_index;
|
2013-06-07 21:53:09 +00:00
|
|
|
|
|
|
|
|
/* the driver handles the cpus in cpumask */
|
2013-10-03 21:26:40 +05:30
|
|
|
struct cpumask *cpumask;
|
2019-09-08 00:45:21 +01:00
|
|
|
|
|
|
|
|
/* preferred governor to switch at register time */
|
|
|
|
|
const char *governor;
|
2007-10-03 18:58:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_IDLE
|
2011-04-01 18:28:35 -04:00
|
|
|
extern void disable_cpuidle(void);
|
2015-03-02 22:26:55 +01:00
|
|
|
extern bool cpuidle_not_available(struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev);
|
2014-03-03 08:48:50 +01:00
|
|
|
|
|
|
|
|
extern int cpuidle_select(struct cpuidle_driver *drv,
|
2018-03-22 17:50:49 +01:00
|
|
|
struct cpuidle_device *dev,
|
|
|
|
|
bool *stop_tick);
|
2014-03-03 08:48:50 +01:00
|
|
|
extern int cpuidle_enter(struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev, int index);
|
|
|
|
|
extern void cpuidle_reflect(struct cpuidle_device *dev, int index);
|
2019-07-03 20:51:26 -03:00
|
|
|
extern u64 cpuidle_poll_time(struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev);
|
2014-03-03 08:48:50 +01:00
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
extern int cpuidle_register_driver(struct cpuidle_driver *drv);
|
2012-06-16 15:20:11 +02:00
|
|
|
extern struct cpuidle_driver *cpuidle_get_driver(void);
|
2019-11-18 12:11:24 +01:00
|
|
|
extern void cpuidle_driver_state_disabled(struct cpuidle_driver *drv, int idx,
|
|
|
|
|
bool disable);
|
2007-10-03 18:58:00 -04:00
|
|
|
extern void cpuidle_unregister_driver(struct cpuidle_driver *drv);
|
|
|
|
|
extern int cpuidle_register_device(struct cpuidle_device *dev);
|
|
|
|
|
extern void cpuidle_unregister_device(struct cpuidle_device *dev);
|
2013-04-23 08:54:33 +00:00
|
|
|
extern int cpuidle_register(struct cpuidle_driver *drv,
|
|
|
|
|
const struct cpumask *const coupled_cpus);
|
|
|
|
|
extern void cpuidle_unregister(struct cpuidle_driver *drv);
|
2007-10-03 18:58:00 -04:00
|
|
|
extern void cpuidle_pause_and_lock(void);
|
|
|
|
|
extern void cpuidle_resume_and_unlock(void);
|
2012-07-09 10:12:56 +02:00
|
|
|
extern void cpuidle_pause(void);
|
|
|
|
|
extern void cpuidle_resume(void);
|
2007-10-03 18:58:00 -04:00
|
|
|
extern int cpuidle_enable_device(struct cpuidle_device *dev);
|
|
|
|
|
extern void cpuidle_disable_device(struct cpuidle_device *dev);
|
2012-03-13 19:55:09 +01:00
|
|
|
extern int cpuidle_play_dead(void);
|
|
|
|
|
|
2012-10-31 16:44:48 +00:00
|
|
|
extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev);
|
2016-06-01 18:52:16 +01:00
|
|
|
static inline struct cpuidle_device *cpuidle_get_device(void)
|
|
|
|
|
{return __this_cpu_read(cpuidle_devices); }
|
2007-10-03 18:58:00 -04:00
|
|
|
#else
|
2011-04-01 18:28:35 -04:00
|
|
|
static inline void disable_cpuidle(void) { }
|
2015-03-02 22:26:55 +01:00
|
|
|
static inline bool cpuidle_not_available(struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev)
|
|
|
|
|
{return true; }
|
2014-03-03 08:48:50 +01:00
|
|
|
static inline int cpuidle_select(struct cpuidle_driver *drv,
|
2018-03-22 17:50:49 +01:00
|
|
|
struct cpuidle_device *dev, bool *stop_tick)
|
2014-03-03 08:48:50 +01:00
|
|
|
{return -ENODEV; }
|
|
|
|
|
static inline int cpuidle_enter(struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev, int index)
|
|
|
|
|
{return -ENODEV; }
|
|
|
|
|
static inline void cpuidle_reflect(struct cpuidle_device *dev, int index) { }
|
2019-07-31 15:29:52 +10:00
|
|
|
static inline u64 cpuidle_poll_time(struct cpuidle_driver *drv,
|
2019-07-03 20:51:26 -03:00
|
|
|
struct cpuidle_device *dev)
|
|
|
|
|
{return 0; }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
|
2010-05-11 16:50:52 -04:00
|
|
|
{return -ENODEV; }
|
2010-05-22 16:57:26 -04:00
|
|
|
static inline struct cpuidle_driver *cpuidle_get_driver(void) {return NULL; }
|
2019-11-18 12:11:24 +01:00
|
|
|
static inline void cpuidle_driver_state_disabled(struct cpuidle_driver *drv,
|
|
|
|
|
int idx, bool disable) { }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { }
|
|
|
|
|
static inline int cpuidle_register_device(struct cpuidle_device *dev)
|
2010-05-11 16:50:52 -04:00
|
|
|
{return -ENODEV; }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { }
|
2013-04-23 08:54:33 +00:00
|
|
|
static inline int cpuidle_register(struct cpuidle_driver *drv,
|
|
|
|
|
const struct cpumask *const coupled_cpus)
|
|
|
|
|
{return -ENODEV; }
|
|
|
|
|
static inline void cpuidle_unregister(struct cpuidle_driver *drv) { }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline void cpuidle_pause_and_lock(void) { }
|
|
|
|
|
static inline void cpuidle_resume_and_unlock(void) { }
|
2012-07-09 10:12:56 +02:00
|
|
|
static inline void cpuidle_pause(void) { }
|
|
|
|
|
static inline void cpuidle_resume(void) { }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline int cpuidle_enable_device(struct cpuidle_device *dev)
|
2010-05-11 16:50:52 -04:00
|
|
|
{return -ENODEV; }
|
2007-10-03 18:58:00 -04:00
|
|
|
static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
|
2012-03-13 19:55:09 +01:00
|
|
|
static inline int cpuidle_play_dead(void) {return -ENODEV; }
|
2015-05-16 01:38:15 +02:00
|
|
|
static inline struct cpuidle_driver *cpuidle_get_cpu_driver(
|
|
|
|
|
struct cpuidle_device *dev) {return NULL; }
|
2016-06-01 18:52:16 +01:00
|
|
|
static inline struct cpuidle_device *cpuidle_get_device(void) {return NULL; }
|
2015-05-16 01:38:15 +02:00
|
|
|
#endif
|
|
|
|
|
|
2016-11-28 23:03:04 -08:00
|
|
|
#ifdef CONFIG_CPU_IDLE
|
2015-05-16 01:38:15 +02:00
|
|
|
extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
2019-11-16 14:16:13 +01:00
|
|
|
struct cpuidle_device *dev,
|
|
|
|
|
u64 latency_limit_ns);
|
2017-08-10 00:14:45 +02:00
|
|
|
extern int cpuidle_enter_s2idle(struct cpuidle_driver *drv,
|
2015-05-16 01:38:15 +02:00
|
|
|
struct cpuidle_device *dev);
|
2019-11-16 14:16:12 +01:00
|
|
|
extern void cpuidle_use_deepest_state(u64 latency_limit_ns);
|
2015-05-16 01:38:15 +02:00
|
|
|
#else
|
2015-03-02 22:26:55 +01:00
|
|
|
static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
2019-11-16 14:16:13 +01:00
|
|
|
struct cpuidle_device *dev,
|
|
|
|
|
u64 latency_limit_ns)
|
2015-03-02 22:26:55 +01:00
|
|
|
{return -ENODEV; }
|
2017-08-10 00:14:45 +02:00
|
|
|
static inline int cpuidle_enter_s2idle(struct cpuidle_driver *drv,
|
2015-03-02 22:26:55 +01:00
|
|
|
struct cpuidle_device *dev)
|
|
|
|
|
{return -ENODEV; }
|
2019-11-16 14:16:12 +01:00
|
|
|
static inline void cpuidle_use_deepest_state(u64 latency_limit_ns)
|
2016-11-28 23:03:04 -08:00
|
|
|
{
|
|
|
|
|
}
|
2007-10-03 18:58:00 -04:00
|
|
|
#endif
|
|
|
|
|
|
2015-05-10 01:18:03 +02:00
|
|
|
/* kernel/sched/idle.c */
|
|
|
|
|
extern void sched_idle_set_state(struct cpuidle_state *idle_state);
|
2015-05-10 01:18:46 +02:00
|
|
|
extern void default_idle_call(void);
|
2015-05-10 01:18:03 +02:00
|
|
|
|
2012-05-07 17:57:42 -07:00
|
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
|
|
|
|
void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, atomic_t *a);
|
2012-08-15 20:51:54 +00:00
|
|
|
#else
|
|
|
|
|
static inline void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, atomic_t *a)
|
|
|
|
|
{
|
|
|
|
|
}
|
2012-05-07 17:57:42 -07:00
|
|
|
#endif
|
|
|
|
|
|
2018-02-12 11:34:22 +01:00
|
|
|
#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_ARCH_HAS_CPU_RELAX)
|
2017-08-29 03:14:37 +02:00
|
|
|
void cpuidle_poll_state_init(struct cpuidle_driver *drv);
|
2017-08-23 23:21:07 +02:00
|
|
|
#else
|
2017-08-29 03:14:37 +02:00
|
|
|
static inline void cpuidle_poll_state_init(struct cpuidle_driver *drv) {}
|
2017-08-23 23:21:07 +02:00
|
|
|
#endif
|
|
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
/******************************
|
|
|
|
|
* CPUIDLE GOVERNOR INTERFACE *
|
|
|
|
|
******************************/
|
|
|
|
|
|
|
|
|
|
struct cpuidle_governor {
|
|
|
|
|
char name[CPUIDLE_NAME_LEN];
|
|
|
|
|
struct list_head governor_list;
|
|
|
|
|
unsigned int rating;
|
|
|
|
|
|
2011-10-28 16:20:42 +05:30
|
|
|
int (*enable) (struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev);
|
|
|
|
|
void (*disable) (struct cpuidle_driver *drv,
|
|
|
|
|
struct cpuidle_device *dev);
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2011-10-28 16:20:42 +05:30
|
|
|
int (*select) (struct cpuidle_driver *drv,
|
2018-03-22 17:50:49 +01:00
|
|
|
struct cpuidle_device *dev,
|
|
|
|
|
bool *stop_tick);
|
2011-10-28 16:20:09 +05:30
|
|
|
void (*reflect) (struct cpuidle_device *dev, int index);
|
2007-10-03 18:58:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern int cpuidle_register_governor(struct cpuidle_governor *gov);
|
2019-11-07 15:25:12 +01:00
|
|
|
extern s64 cpuidle_governor_latency_req(unsigned int cpu);
|
2007-10-03 18:58:00 -04:00
|
|
|
|
2019-08-09 12:03:12 +01:00
|
|
|
#define __CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, \
|
|
|
|
|
idx, \
|
|
|
|
|
state, \
|
|
|
|
|
is_retention) \
|
2017-11-15 10:11:49 -07:00
|
|
|
({ \
|
|
|
|
|
int __ret = 0; \
|
|
|
|
|
\
|
|
|
|
|
if (!idx) { \
|
|
|
|
|
cpu_do_idle(); \
|
|
|
|
|
return idx; \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
if (!is_retention) \
|
|
|
|
|
__ret = cpu_pm_enter(); \
|
|
|
|
|
if (!__ret) { \
|
2019-08-09 12:03:12 +01:00
|
|
|
__ret = low_level_idle_enter(state); \
|
2017-11-15 10:11:49 -07:00
|
|
|
if (!is_retention) \
|
|
|
|
|
cpu_pm_exit(); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
__ret ? -1 : idx; \
|
2016-07-19 18:52:56 +01:00
|
|
|
})
|
|
|
|
|
|
2017-11-15 10:11:49 -07:00
|
|
|
#define CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx) \
|
2019-08-09 12:03:12 +01:00
|
|
|
__CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx, idx, 0)
|
2017-11-15 10:11:49 -07:00
|
|
|
|
|
|
|
|
#define CPU_PM_CPU_IDLE_ENTER_RETENTION(low_level_idle_enter, idx) \
|
2019-08-09 12:03:12 +01:00
|
|
|
__CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx, idx, 1)
|
|
|
|
|
|
|
|
|
|
#define CPU_PM_CPU_IDLE_ENTER_PARAM(low_level_idle_enter, idx, state) \
|
|
|
|
|
__CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx, state, 0)
|
|
|
|
|
|
|
|
|
|
#define CPU_PM_CPU_IDLE_ENTER_RETENTION_PARAM(low_level_idle_enter, idx, state) \
|
|
|
|
|
__CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx, state, 1)
|
2017-11-15 10:11:49 -07:00
|
|
|
|
2007-10-03 18:58:00 -04:00
|
|
|
#endif /* _LINUX_CPUIDLE_H */
|