diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
| commit | b74b953b998bcc2db91b694446f3a2619ec32de6 (patch) | |
| tree | 6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /include/acpi/processor.h | |
| parent | abb438526201c6a79949ad45375c051b6681c253 (diff) | |
| parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c
(commit eda603f).
Diffstat (limited to 'include/acpi/processor.h')
| -rw-r--r-- | include/acpi/processor.h | 71 |
1 files changed, 33 insertions, 38 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 0ea5ef4eb6a9..1b62102fbb67 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
| @@ -48,21 +48,10 @@ struct acpi_power_register { | |||
| 48 | u8 space_id; | 48 | u8 space_id; |
| 49 | u8 bit_width; | 49 | u8 bit_width; |
| 50 | u8 bit_offset; | 50 | u8 bit_offset; |
| 51 | u8 reserved; | 51 | u8 access_size; |
| 52 | u64 address; | 52 | u64 address; |
| 53 | } __attribute__ ((packed)); | 53 | } __attribute__ ((packed)); |
| 54 | 54 | ||
| 55 | struct acpi_processor_cx_policy { | ||
| 56 | u32 count; | ||
| 57 | struct acpi_processor_cx *state; | ||
| 58 | struct { | ||
| 59 | u32 time; | ||
| 60 | u32 ticks; | ||
| 61 | u32 count; | ||
| 62 | u32 bm; | ||
| 63 | } threshold; | ||
| 64 | }; | ||
| 65 | |||
| 66 | struct acpi_processor_cx { | 55 | struct acpi_processor_cx { |
| 67 | u8 valid; | 56 | u8 valid; |
| 68 | u8 type; | 57 | u8 type; |
| @@ -74,8 +63,7 @@ struct acpi_processor_cx { | |||
| 74 | u32 power; | 63 | u32 power; |
| 75 | u32 usage; | 64 | u32 usage; |
| 76 | u64 time; | 65 | u64 time; |
| 77 | struct acpi_processor_cx_policy promotion; | 66 | u8 bm_sts_skip; |
| 78 | struct acpi_processor_cx_policy demotion; | ||
| 79 | char desc[ACPI_CX_DESC_LEN]; | 67 | char desc[ACPI_CX_DESC_LEN]; |
| 80 | }; | 68 | }; |
| 81 | 69 | ||
| @@ -92,11 +80,11 @@ struct acpi_processor_power { | |||
| 92 | /* Performance Management */ | 80 | /* Performance Management */ |
| 93 | 81 | ||
| 94 | struct acpi_psd_package { | 82 | struct acpi_psd_package { |
| 95 | acpi_integer num_entries; | 83 | u64 num_entries; |
| 96 | acpi_integer revision; | 84 | u64 revision; |
| 97 | acpi_integer domain; | 85 | u64 domain; |
| 98 | acpi_integer coord_type; | 86 | u64 coord_type; |
| 99 | acpi_integer num_processors; | 87 | u64 num_processors; |
| 100 | } __attribute__ ((packed)); | 88 | } __attribute__ ((packed)); |
| 101 | 89 | ||
| 102 | struct acpi_pct_register { | 90 | struct acpi_pct_register { |
| @@ -110,12 +98,12 @@ struct acpi_pct_register { | |||
| 110 | } __attribute__ ((packed)); | 98 | } __attribute__ ((packed)); |
| 111 | 99 | ||
| 112 | struct acpi_processor_px { | 100 | struct acpi_processor_px { |
| 113 | acpi_integer core_frequency; /* megahertz */ | 101 | u64 core_frequency; /* megahertz */ |
| 114 | acpi_integer power; /* milliWatts */ | 102 | u64 power; /* milliWatts */ |
| 115 | acpi_integer transition_latency; /* microseconds */ | 103 | u64 transition_latency; /* microseconds */ |
| 116 | acpi_integer bus_master_latency; /* microseconds */ | 104 | u64 bus_master_latency; /* microseconds */ |
| 117 | acpi_integer control; /* control value */ | 105 | u64 control; /* control value */ |
| 118 | acpi_integer status; /* success indicator */ | 106 | u64 status; /* success indicator */ |
| 119 | }; | 107 | }; |
| 120 | 108 | ||
| 121 | struct acpi_processor_performance { | 109 | struct acpi_processor_performance { |
| @@ -133,11 +121,11 @@ struct acpi_processor_performance { | |||
| 133 | /* Throttling Control */ | 121 | /* Throttling Control */ |
| 134 | 122 | ||
| 135 | struct acpi_tsd_package { | 123 | struct acpi_tsd_package { |
| 136 | acpi_integer num_entries; | 124 | u64 num_entries; |
| 137 | acpi_integer revision; | 125 | u64 revision; |
| 138 | acpi_integer domain; | 126 | u64 domain; |
| 139 | acpi_integer coord_type; | 127 | u64 coord_type; |
| 140 | acpi_integer num_processors; | 128 | u64 num_processors; |
| 141 | } __attribute__ ((packed)); | 129 | } __attribute__ ((packed)); |
| 142 | 130 | ||
| 143 | struct acpi_ptc_register { | 131 | struct acpi_ptc_register { |
| @@ -151,11 +139,11 @@ struct acpi_ptc_register { | |||
| 151 | } __attribute__ ((packed)); | 139 | } __attribute__ ((packed)); |
| 152 | 140 | ||
| 153 | struct acpi_processor_tx_tss { | 141 | struct acpi_processor_tx_tss { |
| 154 | acpi_integer freqpercentage; /* */ | 142 | u64 freqpercentage; /* */ |
| 155 | acpi_integer power; /* milliWatts */ | 143 | u64 power; /* milliWatts */ |
| 156 | acpi_integer transition_latency; /* microseconds */ | 144 | u64 transition_latency; /* microseconds */ |
| 157 | acpi_integer control; /* control value */ | 145 | u64 control; /* control value */ |
| 158 | acpi_integer status; /* success indicator */ | 146 | u64 status; /* success indicator */ |
| 159 | }; | 147 | }; |
| 160 | struct acpi_processor_tx { | 148 | struct acpi_processor_tx { |
| 161 | u16 power; | 149 | u16 power; |
| @@ -238,7 +226,7 @@ struct acpi_processor_errata { | |||
| 238 | 226 | ||
| 239 | extern int acpi_processor_preregister_performance(struct | 227 | extern int acpi_processor_preregister_performance(struct |
| 240 | acpi_processor_performance | 228 | acpi_processor_performance |
| 241 | *performance); | 229 | __percpu *performance); |
| 242 | 230 | ||
| 243 | extern int acpi_processor_register_performance(struct acpi_processor_performance | 231 | extern int acpi_processor_register_performance(struct acpi_processor_performance |
| 244 | *performance, unsigned int cpu); | 232 | *performance, unsigned int cpu); |
| @@ -320,8 +308,16 @@ static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit) | |||
| 320 | 308 | ||
| 321 | #endif /* CONFIG_CPU_FREQ */ | 309 | #endif /* CONFIG_CPU_FREQ */ |
| 322 | 310 | ||
| 323 | /* in processor_pdc.c */ | 311 | /* in processor_core.c */ |
| 324 | void acpi_processor_set_pdc(acpi_handle handle); | 312 | void acpi_processor_set_pdc(acpi_handle handle); |
| 313 | #ifdef CONFIG_SMP | ||
| 314 | int acpi_get_cpuid(acpi_handle, int type, u32 acpi_id); | ||
| 315 | #else | ||
| 316 | static inline int acpi_get_cpuid(acpi_handle handle, int type, u32 acpi_id) | ||
| 317 | { | ||
| 318 | return -1; | ||
| 319 | } | ||
| 320 | #endif | ||
| 325 | 321 | ||
| 326 | /* in processor_throttling.c */ | 322 | /* in processor_throttling.c */ |
| 327 | int acpi_processor_tstate_has_changed(struct acpi_processor *pr); | 323 | int acpi_processor_tstate_has_changed(struct acpi_processor *pr); |
| @@ -342,7 +338,6 @@ extern struct cpuidle_driver acpi_idle_driver; | |||
| 342 | 338 | ||
| 343 | /* in processor_thermal.c */ | 339 | /* in processor_thermal.c */ |
| 344 | int acpi_processor_get_limit_info(struct acpi_processor *pr); | 340 | int acpi_processor_get_limit_info(struct acpi_processor *pr); |
| 345 | extern const struct file_operations acpi_processor_limit_fops; | ||
| 346 | extern struct thermal_cooling_device_ops processor_cooling_ops; | 341 | extern struct thermal_cooling_device_ops processor_cooling_ops; |
| 347 | #ifdef CONFIG_CPU_FREQ | 342 | #ifdef CONFIG_CPU_FREQ |
| 348 | void acpi_thermal_cpufreq_init(void); | 343 | void acpi_thermal_cpufreq_init(void); |
