Lines Matching refs:pstate
43 * On an idle system we want the global pstate to ramp-down from max value to
56 /* Interval after which the timer is queued to bring down global pstate */
62 * @highest_lpstate_idx: The local pstate index from which we are
68 * @last_lpstate_idx: Last set value of local pstate and global
69 * @last_gpstate_idx: pstate in terms of cpufreq table index
71 * a long time with global pstate held high
93 * indexed by a function of pstate id.
95 * @pstate_id: pstate id for this entry.
176 * idx_to_pstate : Returns the pstate id corresponding to the
180 * If @i is out of bound, this will return the pstate
196 * pstate id is @pstate.
198 * If no frequency corresponding to @pstate is found,
202 static unsigned int pstate_to_idx(u8 pstate)
204 unsigned int key = pstate % POWERNV_MAX_PSTATES;
208 if (revmap_data->pstate_id == pstate)
212 pr_warn_once("pstate_to_idx: pstate 0x%x not found\n", pstate);
247 if (of_property_read_u32(power_mgt, "ibm,pstate-min", &pstate_min)) {
248 pr_warn("ibm,pstate-min node not found\n");
252 if (of_property_read_u32(power_mgt, "ibm,pstate-max", &pstate_max)) {
253 pr_warn("ibm,pstate-max node not found\n");
257 if (of_property_read_u32(power_mgt, "ibm,pstate-nominal",
259 pr_warn("ibm,pstate-nominal not found\n");
263 if (of_property_read_u32(power_mgt, "ibm,pstate-ultra-turbo",
269 if (of_property_read_u32(power_mgt, "ibm,pstate-turbo",
281 pr_info("cpufreq pstate min 0x%x nominal 0x%x max 0x%x\n", pstate_min,
286 pstate_ids = of_get_property(power_mgt, "ibm,pstate-ids", &len_ids);
288 pr_warn("ibm,pstate-ids not found\n");
292 pstate_freqs = of_get_property(power_mgt, "ibm,pstate-frequencies-mhz",
295 pr_warn("ibm,pstate-frequencies-mhz not found\n");
300 pr_warn("Entries in ibm,pstate-ids and "
301 "ibm,pstate-frequencies-mhz does not match\n");
517 * set_pstate: Sets the pstate on this CPU.
548 * pstate in the cpufreq table
611 * calc_global_pstate - Calculate global pstate
613 * @local_pstate_idx: New local pstate
614 * @highest_lpstate_idx: pstate from which its ramping down
616 * Finds the appropriate global pstate based on the pstate from which its
636 /* Ensure that global pstate is >= to local pstate */
665 * @t: Timer context used to fetch global pstate info struct
667 * This handler brings down the global pstate closer to the local pstate
669 * to local pstate
726 * If local pstate is equal to global pstate, rampdown is over
782 * we should be resetting all global pstate related data. Set it
783 * equal to local pstate to start fresh.
802 * If local pstate is equal to global pstate, rampdown is over