blob: b81889acea6887b7137f2923140795c23033e322 (
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
|
/*
* Copyright (C) STMicroelectronics 2009
* Copyright (C) ST-Ericsson SA 2010
*
* License Terms: GNU General Public License v2
* Author: Sundar Iyer <sundar.iyer@stericsson.com>
*
* CPUIdle header for U8500
*/
#ifndef __U8500_CPUIDLE_H
#define __U8500_CPUIDLE_H
#include <linux/cpuidle.h>
#define U8500_NUM_CSTATES 3
#define U8500_CSTATE_C0 0 /* running */
#define U8500_CSTATE_C1 1 /* wfi */
#define U8500_CSTATE_C2 2 /* wfi or wfi retention */
/* this is the c-state template structure used to populate the cpuidle
* c-states for all cpu's */
struct u8500_cstate {
u8 type;
u32 sleep_latency;
u32 wakeup_latency;
u32 threshold;
u32 power_usage;
u32 flags;
char desc[CPUIDLE_DESC_LEN];
};
#endif
|