diff options
Diffstat (limited to 'arch/arm/mach-ux500/cpuidle.h')
-rwxr-xr-x | arch/arm/mach-ux500/cpuidle.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpuidle.h b/arch/arm/mach-ux500/cpuidle.h new file mode 100755 index 00000000000..bfa5221a718 --- /dev/null +++ b/arch/arm/mach-ux500/cpuidle.h @@ -0,0 +1,34 @@ +/* + * CPU frequency module for U8500 + * + * Copyright 2009 STMicroelectronics. + * + * 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 __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 |