usr/src/uts/i86pc/os/cpupm/speedstep.c
changeset 14252 ae5fcf7b2a38
parent 13706 1905bad7dc63
equal deleted inserted replaced
14251:dd47ff2145ca 14252:ae5fcf7b2a38
   183 {
   183 {
   184 	cpupm_mach_state_t *mach_state =
   184 	cpupm_mach_state_t *mach_state =
   185 	    (cpupm_mach_state_t *)cp->cpu_m.mcpu_pm_mach_state;
   185 	    (cpupm_mach_state_t *)cp->cpu_m.mcpu_pm_mach_state;
   186 	cpu_acpi_handle_t handle = mach_state->ms_acpi_handle;
   186 	cpu_acpi_handle_t handle = mach_state->ms_acpi_handle;
   187 	cpu_acpi_pct_t *pct_stat;
   187 	cpu_acpi_pct_t *pct_stat;
       
   188 	static int logged = 0;
   188 
   189 
   189 	ESSDEBUG(("speedstep_init: processor %d\n", cp->cpu_id));
   190 	ESSDEBUG(("speedstep_init: processor %d\n", cp->cpu_id));
   190 
   191 
   191 	/*
   192 	/*
   192 	 * Cache the P-state specific ACPI data.
   193 	 * Cache the P-state specific ACPI data.
   193 	 */
   194 	 */
   194 	if (cpu_acpi_cache_pstate_data(handle) != 0) {
   195 	if (cpu_acpi_cache_pstate_data(handle) != 0) {
   195 		cmn_err(CE_NOTE, "!SpeedStep support is being "
   196 		if (!logged) {
   196 		    "disabled due to errors parsing ACPI P-state objects "
   197 			cmn_err(CE_NOTE, "!SpeedStep support is being "
   197 		    "exported by BIOS.");
   198 			    "disabled due to errors parsing ACPI P-state "
       
   199 			    "objects exported by BIOS.");
       
   200 			logged = 1;
       
   201 		}
   198 		speedstep_fini(cp);
   202 		speedstep_fini(cp);
   199 		return (ESS_RET_NO_PM);
   203 		return (ESS_RET_NO_PM);
   200 	}
   204 	}
   201 
   205 
   202 	pct_stat = CPU_ACPI_PCT_STATUS(handle);
   206 	pct_stat = CPU_ACPI_PCT_STATUS(handle);