mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Venkatesh Pallipadi](/assets/img/avatar_default.png)
Documentation for cpuidle infrastructure. (resend) Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Len Brown <len.brown@intel.com>
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
|
|
|
|
Supporting multiple CPU idle levels in kernel
|
|
|
|
cpuidle drivers
|
|
|
|
|
|
|
|
|
|
cpuidle driver hooks into the cpuidle infrastructure and handles the
|
|
architecture/platform dependent part of CPU idle states. Driver
|
|
provides the platform idle state detection capability and also
|
|
has mechanisms in place to support actual entry-exit into CPU idle states.
|
|
|
|
cpuidle driver initializes the cpuidle_device structure for each CPU device
|
|
and registers with cpuidle using cpuidle_register_device.
|
|
|
|
It can also support the dynamic changes (like battery <-> AC), by using
|
|
cpuidle_pause_and_lock, cpuidle_disable_device and cpuidle_enable_device,
|
|
cpuidle_resume_and_unlock.
|
|
|
|
Interfaces:
|
|
extern int cpuidle_register_driver(struct cpuidle_driver *drv);
|
|
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);
|
|
|
|
extern void cpuidle_pause_and_lock(void);
|
|
extern void cpuidle_resume_and_unlock(void);
|
|
extern int cpuidle_enable_device(struct cpuidle_device *dev);
|
|
extern void cpuidle_disable_device(struct cpuidle_device *dev);
|