168 { |
168 { |
169 cpupm_mach_state_t *mach_state = |
169 cpupm_mach_state_t *mach_state = |
170 (cpupm_mach_state_t *)cp->cpu_m.mcpu_pm_mach_state; |
170 (cpupm_mach_state_t *)cp->cpu_m.mcpu_pm_mach_state; |
171 cpu_acpi_handle_t handle = mach_state->ms_acpi_handle; |
171 cpu_acpi_handle_t handle = mach_state->ms_acpi_handle; |
172 cpu_acpi_pct_t *pct_stat; |
172 cpu_acpi_pct_t *pct_stat; |
|
173 static int logged = 0; |
173 |
174 |
174 PWRNOW_DEBUG(("pwrnow_init: processor %d\n", cp->cpu_id)); |
175 PWRNOW_DEBUG(("pwrnow_init: processor %d\n", cp->cpu_id)); |
175 |
176 |
176 /* |
177 /* |
177 * Cache the P-state specific ACPI data. |
178 * Cache the P-state specific ACPI data. |
178 */ |
179 */ |
179 if (cpu_acpi_cache_pstate_data(handle) != 0) { |
180 if (cpu_acpi_cache_pstate_data(handle) != 0) { |
180 cmn_err(CE_NOTE, "!PowerNow! support is being " |
181 if (!logged) { |
181 "disabled due to errors parsing ACPI P-state objects " |
182 cmn_err(CE_NOTE, "!PowerNow! support is being " |
182 "exported by BIOS."); |
183 "disabled due to errors parsing ACPI P-state " |
|
184 "objects exported by BIOS."); |
|
185 logged = 1; |
|
186 } |
183 pwrnow_fini(cp); |
187 pwrnow_fini(cp); |
184 return (PWRNOW_RET_NO_PM); |
188 return (PWRNOW_RET_NO_PM); |
185 } |
189 } |
186 |
190 |
187 pct_stat = CPU_ACPI_PCT_STATUS(handle); |
191 pct_stat = CPU_ACPI_PCT_STATUS(handle); |