Lines Matching +full:cpu +full:- +full:driver
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2005-2007 Nate Lawson (SDG)
35 * CPU device support.
59 return (-1); in cpu_get_nominal_mhz()
80 * CPU frequency control interface.
83 /* Each driver's CPU frequency setting is exported in this format. */
85 int freq; /* CPU clock in Mhz or 100ths of a percent. */
89 device_t dev; /* Driver providing this setting. */
90 int spec[4];/* Driver-specific storage for non-standard info. */
93 /* Maximum number of settings a given driver can have. */
108 #define CPUFREQ_VAL_UNKNOWN (-1)
111 * Every driver offers a type of CPU control. Absolute levels are mutually
117 * frequency settings of 100, 200 and 300, 400 and a relative driver that
124 * information about settings but rely on another machine-dependent driver
142 * the system thermal driver needs to override it for emergency cooling,
143 * the driver would use a higher priority. Once the event has passed, the
144 * driver would call cpufreq to resume any previous level.
152 * Register and unregister a driver with the cpufreq core. Once a driver
169 * If the driver wishes to revoke the change from cpufreq_pre_change, it
170 * stores a non-zero error code in the result parameter and the change will
171 * not be made. If the post-change eventhandler gets a non-zero result,
173 * is revoked, the post-change eventhandler is still called with the error
174 * value supplied by the revoking driver. This gives listeners who cached
190 /* Allow values to be +/- a bit since sometimes we have to estimate. */
191 #define CPUFREQ_CMP(x, y) (abs((x) - (y)) < 25)
194 * Machine-dependent functions.
197 /* Estimate the current clock rate for the given CPU id. */