/* * Copyright (C) 2011 Google, Inc. * * Author: * Colin Cross * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef _LINUX_CPU_PM_H #define _LINUX_CPU_PM_H #include #include enum cpu_pm_event { CPU_PM_ENTER, CPU_PM_ENTER_FAILED, CPU_PM_EXIT, CPU_CLUSTER_PM_ENTER, CPU_CLUSTER_PM_ENTER_FAILED, CPU_CLUSTER_PM_EXIT, }; #ifdef CONFIG_CPU_PM int cpu_pm_register_notifier(struct notifier_block *nb); int cpu_pm_unregister_notifier(struct notifier_block *nb); int cpu_pm_enter(void); int cpu_pm_exit(void); int cpu_cluster_pm_enter(void); int cpu_cluster_pm_exit(void); #else static inline int cpu_pm_register_notifier(struct notifier_block *nb) { return 0; } static inline int cpu_pm_unregister_notifier(struct notifier_block *nb) { return 0; } static inline int cpu_pm_enter(void) { return 0; } static inline int cpu_pm_exit(void) { return 0; } static inline int cpu_cluster_pm_enter(void) { return 0; } static inline int cpu_cluster_pm_exit(void) { return 0; } #endif #endif