processor.h (5a84d159061d914c8dd4aa372ac6e9529c2be453) | processor.h (fd3509436fde38d4c854bf5a6b83d2c779904f8e) |
---|---|
1#ifndef __ACPI_PROCESSOR_H 2#define __ACPI_PROCESSOR_H 3 4#include <linux/kernel.h> 5#include <linux/cpu.h> 6 7#include <asm/acpi.h> 8 --- 4 unchanged lines hidden (view full) --- 13#define ACPI_PROCESSOR_MAX_C3_LATENCY 1000 14 15#define ACPI_PROCESSOR_MAX_THROTTLING 16 16#define ACPI_PROCESSOR_MAX_THROTTLE 250 /* 25% */ 17#define ACPI_PROCESSOR_MAX_DUTY_WIDTH 4 18 19#define ACPI_PDC_REVISION_ID 0x1 20 | 1#ifndef __ACPI_PROCESSOR_H 2#define __ACPI_PROCESSOR_H 3 4#include <linux/kernel.h> 5#include <linux/cpu.h> 6 7#include <asm/acpi.h> 8 --- 4 unchanged lines hidden (view full) --- 13#define ACPI_PROCESSOR_MAX_C3_LATENCY 1000 14 15#define ACPI_PROCESSOR_MAX_THROTTLING 16 16#define ACPI_PROCESSOR_MAX_THROTTLE 250 /* 25% */ 17#define ACPI_PROCESSOR_MAX_DUTY_WIDTH 4 18 19#define ACPI_PDC_REVISION_ID 0x1 20 |
21#define ACPI_PSD_REV0_REVISION 0 /* Support for _PSD as in ACPI 3.0 */ | 21#define ACPI_PSD_REV0_REVISION 0 /* Support for _PSD as in ACPI 3.0 */ |
22#define ACPI_PSD_REV0_ENTRIES 5 23 24/* 25 * Types of coordination defined in ACPI 3.0. Same macros can be used across 26 * P, C and T states 27 */ 28#define DOMAIN_COORD_TYPE_SW_ALL 0xfc 29#define DOMAIN_COORD_TYPE_SW_ANY 0xfd --- 154 unchanged lines hidden (view full) --- 184 struct { 185 u8 throttle:1; 186 u8 fdma:1; 187 u8 reserved:6; 188 u32 bmisx; 189 } piix4; 190}; 191 | 22#define ACPI_PSD_REV0_ENTRIES 5 23 24/* 25 * Types of coordination defined in ACPI 3.0. Same macros can be used across 26 * P, C and T states 27 */ 28#define DOMAIN_COORD_TYPE_SW_ALL 0xfc 29#define DOMAIN_COORD_TYPE_SW_ANY 0xfd --- 154 unchanged lines hidden (view full) --- 184 struct { 185 u8 throttle:1; 186 u8 fdma:1; 187 u8 reserved:6; 188 u32 bmisx; 189 } piix4; 190}; 191 |
192extern int acpi_processor_preregister_performance( 193 struct acpi_processor_performance **performance); | 192extern int acpi_processor_preregister_performance(struct 193 acpi_processor_performance 194 **performance); |
194 195extern int acpi_processor_register_performance(struct acpi_processor_performance 196 *performance, unsigned int cpu); 197extern void acpi_processor_unregister_performance(struct 198 acpi_processor_performance 199 *performance, 200 unsigned int cpu); 201 --- 6 unchanged lines hidden (view full) --- 208extern struct acpi_processor_errata errata; 209 210void arch_acpi_processor_init_pdc(struct acpi_processor *pr); 211 212#ifdef ARCH_HAS_POWER_INIT 213void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, 214 unsigned int cpu); 215int acpi_processor_ffh_cstate_probe(unsigned int cpu, | 195 196extern int acpi_processor_register_performance(struct acpi_processor_performance 197 *performance, unsigned int cpu); 198extern void acpi_processor_unregister_performance(struct 199 acpi_processor_performance 200 *performance, 201 unsigned int cpu); 202 --- 6 unchanged lines hidden (view full) --- 209extern struct acpi_processor_errata errata; 210 211void arch_acpi_processor_init_pdc(struct acpi_processor *pr); 212 213#ifdef ARCH_HAS_POWER_INIT 214void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, 215 unsigned int cpu); 216int acpi_processor_ffh_cstate_probe(unsigned int cpu, |
216 struct acpi_processor_cx *cx, struct acpi_power_register *reg); | 217 struct acpi_processor_cx *cx, 218 struct acpi_power_register *reg); |
217void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate); 218#else 219static inline void acpi_processor_power_init_bm_check(struct 220 acpi_processor_flags 221 *flags, unsigned int cpu) 222{ 223 flags->bm_check = 1; 224 return; 225} 226static inline int acpi_processor_ffh_cstate_probe(unsigned int cpu, | 219void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate); 220#else 221static inline void acpi_processor_power_init_bm_check(struct 222 acpi_processor_flags 223 *flags, unsigned int cpu) 224{ 225 flags->bm_check = 1; 226 return; 227} 228static inline int acpi_processor_ffh_cstate_probe(unsigned int cpu, |
227 struct acpi_processor_cx *cx, struct acpi_power_register *reg) | 229 struct acpi_processor_cx *cx, 230 struct acpi_power_register 231 *reg) |
228{ 229 return -1; 230} | 232{ 233 return -1; 234} |
231static inline void acpi_processor_ffh_cstate_enter( 232 struct acpi_processor_cx *cstate) | 235static inline void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx 236 *cstate) |
233{ 234 return; 235} 236#endif 237 238/* in processor_perflib.c */ 239 240#ifdef CONFIG_CPU_FREQ --- 57 unchanged lines hidden --- | 237{ 238 return; 239} 240#endif 241 242/* in processor_perflib.c */ 243 244#ifdef CONFIG_CPU_FREQ --- 57 unchanged lines hidden --- |