1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Copyright (c) 2018 Park Bumgyu, Samsung Electronics Co., Ltd <bumgyu.park@samsung.com>
*
* 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 <linux/ktime.h>
#include <linux/cpuidle.h>
#include <asm/cputype.h>
#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 */
|