/* * Copyright (c) 2018 Park Bumgyu, Samsung Electronics Co., Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef CPUIDLE_PROFILE_H #define CPUIDLE_PROFILE_H __FILE__ #include #include #include #ifdef CONFIG_ARM64_EXYNOS_CPUIDLE extern void cpuidle_profile_cpu_idle_enter(int cpu, int index); extern void cpuidle_profile_cpu_idle_exit(int cpu, int index, int cancel); extern void cpuidle_profile_cpu_idle_register(struct cpuidle_driver *drv); extern void cpuidle_profile_group_idle_enter(int id); extern void cpuidle_profile_group_idle_exit(int id, int cancel); extern void cpuidle_profile_group_idle_register(int id, const char *name); extern void cpuidle_profile_idle_ip(unsigned long long val); extern void cpuidle_profile_fix_idle_ip(unsigned int fix_idle_ip, int max_index); #else static inline void cpuidle_profile_cpu_idle_enter(int cpu, int index) { } static inline void cpuidle_profile_cpu_idle_exit(int cpu, int index, int cancel) { } static inline void cpuidle_profile_cpu_idle_register(struct cpuidle_driver *drv) { } static inline void cpuidle_profile_group_idle_enter(int id) { } static inline void cpuidle_profile_group_idle_exit(int id, int cancel) { } static inline void cpuidle_profile_group_idle_register(int id, const char *name) { } static inline void cpuidle_profile_idle_ip(unsigned long long val) { } static inline void cpuidle_profile_fix_idle_ip(unsigned int fix_idle_ip, int max_index) { } #endif /* CONFIG_ARM64_EXYNOS_CPUIDLE */ #endif /* CPUIDLE_PROFILE_H */