blob: f9e75ce049e5b14f375029c77c975a02bf687bef (
plain)
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
|
/*
* Copyright (C) 2014 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 <linux/ktime.h>
#include <linux/cpuidle.h>
#include <asm/cputype.h>
struct cpuidle_profile_state_usage {
unsigned int entry_count;
unsigned int early_wakeup_count;
unsigned long long time;
};
struct cpuidle_profile_info {
unsigned int cur_state;
ktime_t last_entry_time;
struct cpuidle_profile_state_usage *usage;
};
extern void cpuidle_profile_start(int cpu, int state);
extern void cpuidle_profile_finish(int cpuid, int early_wakeup);
extern void cpuidle_profile_state_init(struct cpuidle_driver *drv);
#define NUM_CLUSTER 2
#endif /* CPUIDLE_PROFILE_H */
|