Lines Matching defs:speed
47 #define HZ2MHZ(speed) ((speed) / MICROSEC)
75 ":::cpu-change-speed"
83 ":::cpu-change-speed"
103 ":::cpu-change-speed"
112 ":::cpu-change-speed"
157 * Perform setup necessary to enumerate and track CPU speed changes
208 state->speed = HZ2MHZ(atoll(token));
210 if (state->speed > max_cpufreq)
211 max_cpufreq = state->speed;
226 * Return if speed transition is not supported
284 * CPU speed transitions. Take a snapshot of the aggregations, and
285 * look for any CPUs that have made a speed transition over the last
287 * speed transitions took place over the last interval. In that case,
289 * we do encounter a speed transition in a future sampling interval
342 uint64_t speed;
347 speed = cpu_pow->current_pstate;
360 if (g_pstate_info[i].speed == speed) {
363 cpu_pow->speed_accounted = speed;
369 * Take a snapshot of each CPU's speed by looking through the cpu_info kstats.
432 * aggregation data collected during firings of the cpu-change-speed
443 uint64_t speed;
458 speed = *(uint64_t *)(data->dtada_data +
461 if (speed == 0)
462 speed = max_cpufreq;
464 speed = HZ2MHZ(speed);
467 * We have an aggregation record for "cpu" being at "speed"
471 * "speed change" DTrace probe. In this case powertop would
479 if (g_pstate_info[i].speed == speed) {
482 cp->speed_accounted == speed) {