diff options
Diffstat (limited to 'include/acpi/processor.h')
| -rw-r--r-- | include/acpi/processor.h | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 7a00d5089de9..badf0277b1be 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
| @@ -62,9 +62,6 @@ struct acpi_processor_power { | |||
| 62 | u32 bm_activity; | 62 | u32 bm_activity; |
| 63 | int count; | 63 | int count; |
| 64 | struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER]; | 64 | struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER]; |
| 65 | |||
| 66 | /* the _PDC objects passed by the driver, if any */ | ||
| 67 | struct acpi_object_list *pdc; | ||
| 68 | }; | 65 | }; |
| 69 | 66 | ||
| 70 | /* Performance Management */ | 67 | /* Performance Management */ |
| @@ -96,8 +93,6 @@ struct acpi_processor_performance { | |||
| 96 | unsigned int state_count; | 93 | unsigned int state_count; |
| 97 | struct acpi_processor_px *states; | 94 | struct acpi_processor_px *states; |
| 98 | 95 | ||
| 99 | /* the _PDC objects passed by the driver, if any */ | ||
| 100 | struct acpi_object_list *pdc; | ||
| 101 | }; | 96 | }; |
| 102 | 97 | ||
| 103 | /* Throttling Control */ | 98 | /* Throttling Control */ |
| @@ -151,6 +146,9 @@ struct acpi_processor { | |||
| 151 | struct acpi_processor_performance *performance; | 146 | struct acpi_processor_performance *performance; |
| 152 | struct acpi_processor_throttling throttling; | 147 | struct acpi_processor_throttling throttling; |
| 153 | struct acpi_processor_limit limit; | 148 | struct acpi_processor_limit limit; |
| 149 | |||
| 150 | /* the _PDC objects for this processor, if any */ | ||
| 151 | struct acpi_object_list *pdc; | ||
| 154 | }; | 152 | }; |
| 155 | 153 | ||
| 156 | struct acpi_processor_errata { | 154 | struct acpi_processor_errata { |
| @@ -178,22 +176,12 @@ int acpi_processor_notify_smm(struct module *calling_module); | |||
| 178 | extern struct acpi_processor *processors[NR_CPUS]; | 176 | extern struct acpi_processor *processors[NR_CPUS]; |
| 179 | extern struct acpi_processor_errata errata; | 177 | extern struct acpi_processor_errata errata; |
| 180 | 178 | ||
| 181 | int acpi_processor_set_pdc(struct acpi_processor *pr, | 179 | void arch_acpi_processor_init_pdc(struct acpi_processor *pr); |
| 182 | struct acpi_object_list *pdc_in); | ||
| 183 | 180 | ||
| 184 | #ifdef ARCH_HAS_POWER_PDC_INIT | 181 | #ifdef ARCH_HAS_POWER_INIT |
| 185 | void acpi_processor_power_init_pdc(struct acpi_processor_power *pow, | ||
| 186 | unsigned int cpu); | ||
| 187 | void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, | 182 | void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, |
| 188 | unsigned int cpu); | 183 | unsigned int cpu); |
| 189 | #else | 184 | #else |
| 190 | static inline void acpi_processor_power_init_pdc(struct acpi_processor_power | ||
| 191 | *pow, unsigned int cpu) | ||
| 192 | { | ||
| 193 | pow->pdc = NULL; | ||
| 194 | return; | ||
| 195 | } | ||
| 196 | |||
| 197 | static inline void acpi_processor_power_init_bm_check(struct | 185 | static inline void acpi_processor_power_init_bm_check(struct |
| 198 | acpi_processor_flags | 186 | acpi_processor_flags |
| 199 | *flags, unsigned int cpu) | 187 | *flags, unsigned int cpu) |
| @@ -235,9 +223,6 @@ static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr) | |||
| 235 | /* in processor_throttling.c */ | 223 | /* in processor_throttling.c */ |
| 236 | int acpi_processor_get_throttling_info(struct acpi_processor *pr); | 224 | int acpi_processor_get_throttling_info(struct acpi_processor *pr); |
| 237 | int acpi_processor_set_throttling(struct acpi_processor *pr, int state); | 225 | int acpi_processor_set_throttling(struct acpi_processor *pr, int state); |
| 238 | ssize_t acpi_processor_write_throttling(struct file *file, | ||
| 239 | const char __user * buffer, | ||
| 240 | size_t count, loff_t * data); | ||
| 241 | extern struct file_operations acpi_processor_throttling_fops; | 226 | extern struct file_operations acpi_processor_throttling_fops; |
| 242 | 227 | ||
| 243 | /* in processor_idle.c */ | 228 | /* in processor_idle.c */ |
| @@ -249,9 +234,6 @@ int acpi_processor_power_exit(struct acpi_processor *pr, | |||
| 249 | 234 | ||
| 250 | /* in processor_thermal.c */ | 235 | /* in processor_thermal.c */ |
| 251 | int acpi_processor_get_limit_info(struct acpi_processor *pr); | 236 | int acpi_processor_get_limit_info(struct acpi_processor *pr); |
| 252 | ssize_t acpi_processor_write_limit(struct file *file, | ||
| 253 | const char __user * buffer, | ||
| 254 | size_t count, loff_t * data); | ||
| 255 | extern struct file_operations acpi_processor_limit_fops; | 237 | extern struct file_operations acpi_processor_limit_fops; |
| 256 | 238 | ||
| 257 | #ifdef CONFIG_CPU_FREQ | 239 | #ifdef CONFIG_CPU_FREQ |
