Lines Matching refs:turbo_info
78 cpupm_mach_turbo_info_t *turbo_info = ksp->ks_private;
88 if (turbo_info->in_turbo == CPU_IN_TURBO)
89 update_turbo_info(turbo_info);
92 turbo_info->turbo_supported;
93 turbo_kstat.t_mcnt.value.ui64 = turbo_info->t_mcnt;
94 turbo_kstat.t_acnt.value.ui64 = turbo_info->t_acnt;
103 update_turbo_info(cpupm_mach_turbo_info_t *turbo_info)
113 turbo_info->t_mcnt += mcnt;
114 turbo_info->t_acnt += acnt;
122 get_turbo_info(cpupm_mach_turbo_info_t *turbo_info)
130 turbo_info->t_mcnt += mcnt;
131 turbo_info->t_acnt += acnt;
153 cpupm_record_turbo_info(cpupm_mach_turbo_info_t *turbo_info,
156 if (!turbo_info->turbo_supported)
163 turbo_info->in_turbo = CPU_IN_TURBO;
169 turbo_info->in_turbo = 0;
170 get_turbo_info(turbo_info);
177 cpupm_mach_turbo_info_t *turbo_info;
179 turbo_info = kmem_zalloc(sizeof (cpupm_mach_turbo_info_t), KM_SLEEP);
181 turbo_info->turbo_supported = 1;
182 turbo_info->turbo_ksp = kstat_create("turbo", cp->cpu_id,
187 if (turbo_info->turbo_ksp == NULL) {
190 turbo_info->turbo_ksp->ks_data = &turbo_kstat;
191 turbo_info->turbo_ksp->ks_lock = &turbo_mutex;
192 turbo_info->turbo_ksp->ks_update = turbo_kstat_update;
193 turbo_info->turbo_ksp->ks_data_size += MAXNAMELEN;
194 turbo_info->turbo_ksp->ks_private = turbo_info;
196 kstat_install(turbo_info->turbo_ksp);
199 return (turbo_info);
203 cpupm_turbo_fini(cpupm_mach_turbo_info_t *turbo_info)
205 if (turbo_info->turbo_ksp != NULL)
206 kstat_delete(turbo_info->turbo_ksp);
207 kmem_free(turbo_info, sizeof (cpupm_mach_turbo_info_t));