Lines Matching refs:level

46 ppm_cpu_next(ppm_domain_t *domp, int level)
52 int index = level - 1;
124 ppm_cpu_go(ppm_domain_t *domp, int level)
192 * the same next(or new) speed level, program all other system bus resident
193 * devices to the same next speed level. At last, pull the trigger to
211 int level, oldlevel;
224 * Not all cpus may have transitioned to a known level by this time
226 oldlevel = (cpup->level == PM_LEVEL_UNKNOWN) ? highest : cpup->level;
248 for (level = oldlevel+incr; level != newlevel+incr; level += incr) {
249 /* bring each cpu to next level */
251 if (cpup->level == level)
254 ret = pm_power(cpup->dip, 0, level);
255 PPMD(D_CPU, ("%s: \"%s\", %s to level %d, ret %d\n",
256 str, cpup->path, chstr, level, ret))
258 cpup->level = level;
266 * cpus back to the original level
269 ret = ppm_revert_cpu_power(cpup, level - incr);
275 * set bus resident devices at next speed level
277 ret = ppm_cpu_next(domp, level);
279 (void) ppm_revert_cpu_power(cpup, level - incr);
287 ret = ppm_cpu_pre_chng(domp, level - incr, speedup);
289 (void) ppm_revert_cpu_power(cpup, level - incr);
290 (void) ppm_cpu_next(domp, level - incr);
307 ret = ppm_cpu_go(domp, level);
309 (void) ppm_revert_cpu_power(cpup, level - incr);
310 (void) ppm_cpu_next(domp, level - incr);
317 ret = ppm_cpu_post_chng(domp, level, speedup);
321 } /* end of looping each level */
327 * This handles the power-on case where cpu power level is
331 * different level at early boot time since some cpu may not
334 * Here we simply call pm_power() to get the power level updated
344 if (ppmd->level == PM_LEVEL_UNKNOWN && new == ppmd->highest) {
348 "failed to change power level to %d", new))
350 ppmd->level = new;