/* * Governor section: set of functions to handle thermal governors * * Functions to help in the life cycle of thermal governors within * the thermal core and by the thermal governor code.
*/
list_for_each_entry(pos, &thermal_governor_list, governor_list) if (!strncasecmp(name, pos->name, THERMAL_NAME_LENGTH)) return pos;
return NULL;
}
/** * bind_previous_governor() - bind the previous governor of the thermal zone * @tz: a valid pointer to a struct thermal_zone_device * @failed_gov_name: the name of the governor that failed to register * * Register the previous governor of the thermal zone after a new * governor has failed to be bound.
*/ staticvoid bind_previous_governor(struct thermal_zone_device *tz, constchar *failed_gov_name)
{ if (tz->governor && tz->governor->bind_to_tz) { if (tz->governor->bind_to_tz(tz)) {
dev_err(&tz->device, "governor %s failed to bind and the previous one (%s) failed to bind again, thermal zone %s has no governor\n",
failed_gov_name, tz->governor->name, tz->type);
tz->governor = NULL;
}
}
}
/** * thermal_set_governor() - Switch to another governor * @tz: a valid pointer to a struct thermal_zone_device * @new_gov: pointer to the new governor * * Change the governor of thermal zone @tz. * * Return: 0 on success, an error if the new governor's bind_to_tz() failed.
*/ staticint thermal_set_governor(struct thermal_zone_device *tz, struct thermal_governor *new_gov)
{ int ret = 0;
if (tz->governor && tz->governor->unbind_from_tz)
tz->governor->unbind_from_tz(tz);
if (new_gov && new_gov->bind_to_tz) {
ret = new_gov->bind_to_tz(tz); if (ret) {
bind_previous_governor(tz, new_gov->name);
return ret;
}
}
tz->governor = new_gov;
return ret;
}
int thermal_register_governor(struct thermal_governor *governor)
{ int err; constchar *name; struct thermal_zone_device *pos;
if (!governor) return -EINVAL;
guard(mutex)(&thermal_governor_lock);
err = -EBUSY; if (!__find_governor(governor->name)) { bool match_default;
if (!def_governor && match_default)
def_governor = governor;
}
guard(mutex)(&thermal_list_lock);
list_for_each_entry(pos, &thermal_tz_list, node) { /* * only thermal zones with specified tz->tzp->governor_name * may run with tz->govenor unset
*/ if (pos->governor) continue;
name = pos->tzp->governor_name;
if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) { int ret;
ret = thermal_set_governor(pos, governor); if (ret)
dev_err(&pos->device, "Failed to set governor %s for thermal zone %s: %d\n",
governor->name, pos->type, ret);
}
}
dev_err(&tz->device, "Unable to get temperature, disabling!\n"); /* * This function only runs for enabled thermal zones, so no need to * check for the current mode.
*/
__thermal_zone_device_set_mode(tz, THERMAL_DEVICE_DISABLED);
thermal_notify_tz_disable(tz);
for_each_trip_desc(tz, td) { if (td->trip.type == THERMAL_TRIP_CRITICAL &&
td->trip.temperature > THERMAL_TEMP_INVALID) {
dev_crit(&tz->device, "Disabled thermal zone with critical trip point\n"); return;
}
}
}
/* * Zone update section: main control loop applied to each zone while monitoring * in polling mode. The monitoring is done using a workqueue. * Same update may be done on a zone by calling thermal_zone_device_update(). * * An update means: * - Non-critical trips will invoke the governor responsible for that zone; * - Hot trips will produce a notification to userspace; * - Critical trip point will cause a system shutdown.
*/ staticvoid thermal_zone_device_set_polling(struct thermal_zone_device *tz, unsignedlong delay)
{ if (delay > HZ)
delay = round_jiffies_relative(delay);
staticvoid thermal_zone_recheck(struct thermal_zone_device *tz, int error)
{ if (error == -EAGAIN) {
thermal_zone_device_set_polling(tz, THERMAL_RECHECK_DELAY); return;
}
/* * Print the message once to reduce log noise. It will be followed by * another one if the temperature cannot be determined after multiple * attempts.
*/ if (tz->recheck_delay_jiffies == THERMAL_RECHECK_DELAY)
dev_info(&tz->device, "Temperature check failed (%d)\n", error);
tz->recheck_delay_jiffies += max(tz->recheck_delay_jiffies >> 1, 1ULL); if (tz->recheck_delay_jiffies > THERMAL_MAX_RECHECK_DELAY) {
thermal_zone_broken_disable(tz); /* * Restore the original recheck delay value to allow the thermal * zone to try to recover when it is reenabled by user space.
*/
tz->recheck_delay_jiffies = THERMAL_RECHECK_DELAY;
}
}
staticvoid thermal_zone_device_halt(struct thermal_zone_device *tz, enum hw_protection_action action)
{ /* * poweroff_delay_ms must be a carefully profiled positive value. * Its a must for forced_emergency_poweroff_work to be scheduled.
*/ int poweroff_delay_ms = CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS; constchar *msg = "Temperature too high";
dev_emerg(&tz->device, "%s: critical temperature reached\n", tz->type);
/* * Delete upfront and then add to make relocation within the same list * work.
*/
list_del(&td->list_node);
/* Assume that the new entry is likely to be the last one. */
list_for_each_entry_reverse(entry, list, list_node) { if (entry->threshold <= td->threshold) {
list_add(&td->list_node, &entry->list_node); return;
}
}
list_add(&td->list_node, list);
}
WRITE_ONCE(trip->hysteresis, hyst);
thermal_notify_tz_trip_change(tz, trip); /* * If the zone temperature is above or at the trip tmperature, the trip * is in the trips_reached list and its threshold is equal to its low * temperature. It needs to stay in that list, but its threshold needs * to be updated and the list ordering may need to be restored.
*/ if (tz->temperature >= td->threshold)
move_to_trips_reached(tz, td);
}
void thermal_zone_set_trip_temp(struct thermal_zone_device *tz, struct thermal_trip *trip, int temp)
{ struct thermal_trip_desc *td = trip_to_trip_desc(trip); int old_temp = trip->temperature;
if (old_temp == THERMAL_TEMP_INVALID) { /* * The trip was invalid before the change, so move it to the * trips_high list regardless of the new temperature value * because there is no mitigation under way for it. If a * mitigation needs to be started, the trip will be moved to the * trips_reached list later.
*/
move_to_trips_high(tz, td); return;
}
if (temp == THERMAL_TEMP_INVALID) { /* * If the trip is in the trips_reached list, mitigation is under * way for it and it needs to be stopped because the trip is * effectively going away.
*/ if (tz->temperature >= td->threshold)
thermal_trip_crossed(tz, td, thermal_get_tz_governor(tz), false);
move_to_trips_invalid(tz, td); return;
}
/* * The trip stays on its current list, but its threshold needs to be * updated due to the temperature change and the list ordering may need * to be restored.
*/ if (tz->temperature >= td->threshold)
move_to_trips_reached(tz, td); else
move_to_trips_high(tz, td);
}
EXPORT_SYMBOL_GPL(thermal_zone_set_trip_temp);
staticvoid thermal_zone_handle_trips(struct thermal_zone_device *tz, struct thermal_governor *governor, int *low, int *high)
{ struct thermal_trip_desc *td, *next;
LIST_HEAD(way_down_list);
/* Check the trips that were below or at the zone temperature. */
list_for_each_entry_safe_reverse(td, next, &tz->trips_reached, list_node) { if (td->threshold <= tz->temperature) break;
thermal_trip_crossed(tz, td, governor, false); /* * The current trips_high list needs to be processed before * adding new entries to it, so put them on a temporary list.
*/
list_move(&td->list_node, &way_down_list);
} /* Check the trips that were previously above the zone temperature. */
list_for_each_entry_safe(td, next, &tz->trips_high, list_node) { if (td->threshold > tz->temperature) break;
thermal_trip_crossed(tz, td, governor, true);
move_to_trips_reached(tz, td);
} /* Move all of the trips from the temporary list to trips_high. */
list_for_each_entry_safe(td, next, &way_down_list, list_node)
move_to_trips_high(tz, td);
if (!list_empty(&tz->trips_reached)) {
td = list_last_entry(&tz->trips_reached, struct thermal_trip_desc, list_node); /* * Set the "low" value below the current trip threshold in case * the zone temperature is at that threshold and stays there, * which would trigger a new interrupt immediately in vain.
*/
*low = td->threshold - 1;
} if (!list_empty(&tz->trips_high)) {
td = list_first_entry(&tz->trips_high, struct thermal_trip_desc, list_node);
*high = td->threshold;
}
}
void __thermal_zone_device_update(struct thermal_zone_device *tz, enum thermal_notify_event event)
{ struct thermal_governor *governor = thermal_get_tz_governor(tz); int low = -INT_MAX, high = INT_MAX; int temp, ret;
if (tz->state != TZ_STATE_READY || tz->mode != THERMAL_DEVICE_ENABLED) return;
ret = __thermal_zone_get_temp(tz, &temp); if (ret) {
thermal_zone_recheck(tz, ret); return;
} elseif (temp <= THERMAL_TEMP_INVALID) { /* * Special case: No valid temperature value is available, but * the zone owner does not want the core to do anything about * it. Continue regular zone polling if needed, so that this * function can be called again, but skip everything else.
*/ goto monitor;
}
/** * thermal_bind_cdev_to_trip - bind a cooling device to a thermal zone * @tz: pointer to struct thermal_zone_device * @td: descriptor of the trip point to bind @cdev to * @cdev: pointer to struct thermal_cooling_device * @cool_spec: cooling specification for the trip point and @cdev * * This interface function bind a thermal cooling device to the certain trip * point of a thermal zone device. * This function is usually called in the thermal zone device .bind callback. * * Return: 0 on success, the proper error value otherwise.
*/ staticint thermal_bind_cdev_to_trip(struct thermal_zone_device *tz, struct thermal_trip_desc *td, struct thermal_cooling_device *cdev, struct cooling_spec *cool_spec)
{ struct thermal_instance *dev; bool upper_no_limit; int result;
/** * thermal_unbind_cdev_from_trip - unbind a cooling device from a thermal zone. * @tz: pointer to a struct thermal_zone_device. * @td: descriptor of the trip point to unbind @cdev from * @cdev: pointer to a struct thermal_cooling_device. * * This interface function unbind a thermal cooling device from the certain * trip point of a thermal zone device. * This function is usually called in the thermal zone device .unbind callback.
*/ staticvoid thermal_unbind_cdev_from_trip(struct thermal_zone_device *tz, struct thermal_trip_desc *td, struct thermal_cooling_device *cdev)
{ struct thermal_instance *pos, *next;
/** * __thermal_cooling_device_register() - register a new thermal cooling device * @np: a pointer to a device tree node. * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time. * It also gives the opportunity to link the cooling device to a device tree * node, so that it can be bound to a thermal zone created out of device tree. * * Return: a pointer to the created struct thermal_cooling_device or an * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
*/ staticstruct thermal_cooling_device *
__thermal_cooling_device_register(struct device_node *np, constchar *type, void *devdata, conststruct thermal_cooling_device_ops *ops)
{ struct thermal_cooling_device *cdev; unsignedlong current_state; int id, ret;
if (!ops || !ops->get_max_state || !ops->get_cur_state ||
!ops->set_cur_state) return ERR_PTR(-EINVAL);
if (!thermal_class) return ERR_PTR(-ENODEV);
cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); if (!cdev) return ERR_PTR(-ENOMEM);
ret = ida_alloc(&thermal_cdev_ida, GFP_KERNEL); if (ret < 0) goto out_kfree_cdev;
cdev->id = ret;
id = ret;
cdev->type = kstrdup_const(type ? type : "", GFP_KERNEL); if (!cdev->type) {
ret = -ENOMEM; goto out_ida_remove;
}
ret = cdev->ops->get_max_state(cdev, &cdev->max_state); if (ret) goto out_cdev_type;
/* * The cooling device's current state is only needed for debug * initialization below, so a failure to get it does not cause * the entire cooling device initialization to fail. However, * the debug will not work for the device if its initial state * cannot be determined and drivers are responsible for ensuring * that this will not happen.
*/
ret = cdev->ops->get_cur_state(cdev, ¤t_state); if (ret)
current_state = ULONG_MAX;
thermal_cooling_device_setup_sysfs(cdev);
ret = dev_set_name(&cdev->device, "cooling_device%d", cdev->id); if (ret) goto out_cooling_dev;
ret = device_register(&cdev->device); if (ret) { /* thermal_release() handles rest of the cleanup */
put_device(&cdev->device); return ERR_PTR(ret);
}
if (current_state <= cdev->max_state)
thermal_debug_cdev_add(cdev, current_state);
/** * thermal_cooling_device_register() - register a new thermal cooling device * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time. * * Return: a pointer to the created struct thermal_cooling_device or an * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
*/ struct thermal_cooling_device *
thermal_cooling_device_register(constchar *type, void *devdata, conststruct thermal_cooling_device_ops *ops)
{ return __thermal_cooling_device_register(NULL, type, devdata, ops);
}
EXPORT_SYMBOL_GPL(thermal_cooling_device_register);
/** * thermal_of_cooling_device_register() - register an OF thermal cooling device * @np: a pointer to a device tree node. * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * * This function will register a cooling device with device tree node reference. * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time. * * Return: a pointer to the created struct thermal_cooling_device or an * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
*/ struct thermal_cooling_device *
thermal_of_cooling_device_register(struct device_node *np, constchar *type, void *devdata, conststruct thermal_cooling_device_ops *ops)
{ return __thermal_cooling_device_register(np, type, devdata, ops);
}
EXPORT_SYMBOL_GPL(thermal_of_cooling_device_register);
/** * devm_thermal_of_cooling_device_register() - register an OF thermal cooling * device * @dev: a valid struct device pointer of a sensor device. * @np: a pointer to a device tree node. * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. * * This function will register a cooling device with device tree node reference. * This interface function adds a new thermal cooling device (fan/processor/...) * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself * to all the thermal zone devices registered at the same time. * * Return: a pointer to the created struct thermal_cooling_device or an * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
*/ struct thermal_cooling_device *
devm_thermal_of_cooling_device_register(struct device *dev, struct device_node *np, constchar *type, void *devdata, conststruct thermal_cooling_device_ops *ops)
{ struct thermal_cooling_device **ptr, *tcd;
ptr = devres_alloc(thermal_cooling_device_release, sizeof(*ptr),
GFP_KERNEL); if (!ptr) return ERR_PTR(-ENOMEM);
list_for_each_entry(pos, &thermal_cdev_list, node) { if (pos == cdev) returntrue;
}
returnfalse;
}
/** * thermal_cooling_device_update - Update a cooling device object * @cdev: Target cooling device. * * Update @cdev to reflect a change of the underlying hardware or platform. * * Must be called when the maximum cooling state of @cdev becomes invalid and so * its .get_max_state() callback needs to be run to produce the new maximum * cooling state value.
*/ void thermal_cooling_device_update(struct thermal_cooling_device *cdev)
{ struct thermal_instance *ti; unsignedlong state;
if (IS_ERR_OR_NULL(cdev)) return;
/* * Hold thermal_list_lock throughout the update to prevent the device * from going away while being updated.
*/
guard(mutex)(&thermal_list_lock);
if (!thermal_cooling_device_present(cdev)) return;
/* * Update under the cdev lock to prevent the state from being set beyond * the new limit concurrently.
*/
guard(cooling_dev)(cdev);
if (cdev->ops->get_max_state(cdev, &cdev->max_state)) return;
thermal_cooling_device_stats_reinit(cdev);
list_for_each_entry(ti, &cdev->thermal_instances, cdev_node) { if (ti->upper == cdev->max_state) continue;
if (ti->upper < cdev->max_state) { if (ti->upper_no_limit)
ti->upper = cdev->max_state;
continue;
}
ti->upper = cdev->max_state; if (ti->lower > ti->upper)
ti->lower = ti->upper;
if (ti->target == THERMAL_NO_TARGET) continue;
if (ti->target > ti->upper)
ti->target = ti->upper;
}
if (cdev->ops->get_cur_state(cdev, &state) || state > cdev->max_state) return;
list_for_each_entry(instance, &td->thermal_instances, trip_node)
instance->initialized = false;
} /* * At this point, all valid trips need to be moved to trips_high so that * mitigation can be started if the zone temperature is above them.
*/
list_for_each_entry_safe(td, next, &tz->trips_invalid, list_node) { if (td->trip.temperature != THERMAL_TEMP_INVALID)
move_to_trips_high(tz, td);
} /* The trips_reached list may not be empty during system resume. */
list_for_each_entry_safe(td, next, &tz->trips_reached, list_node) { if (td->trip.temperature == THERMAL_TEMP_INVALID)
move_to_trips_invalid(tz, td); else
move_to_trips_high(tz, td);
}
}
/* Bind cooling devices for this zone. */
list_for_each_entry(cdev, &thermal_cdev_list, node)
__thermal_zone_cdev_bind(tz, cdev);
tz->state &= ~TZ_STATE_FLAG_INIT; /* * If system suspend or resume is in progress at this point, the * new thermal zone needs to be marked as suspended because * thermal_pm_notify() has run already.
*/ if (thermal_pm_suspended)
tz->state |= TZ_STATE_FLAG_SUSPENDED;
/** * thermal_zone_device_register_with_trips() - register a new thermal zone device * @type: the thermal zone device type * @trips: a pointer to an array of thermal trips * @num_trips: the number of trip points the thermal zone support * @devdata: private device data * @ops: standard thermal zone device callbacks * @tzp: thermal zone platform parameters * @passive_delay: number of milliseconds to wait between polls when * performing passive cooling * @polling_delay: number of milliseconds to wait between polls when checking * whether trip points have been crossed (0 for interrupt * driven systems) * * This interface function adds a new thermal zone device (sensor) to * /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the * thermal cooling devices registered at the same time. * thermal_zone_device_unregister() must be called when the device is no * longer needed. The passive cooling depends on the .get_trend() return value. * * Return: a pointer to the created struct thermal_zone_device or an * in case of error, an ERR_PTR. Caller must check return value with * IS_ERR*() helpers.
*/ struct thermal_zone_device *
thermal_zone_device_register_with_trips(constchar *type, conststruct thermal_trip *trips, int num_trips, void *devdata, conststruct thermal_zone_device_ops *ops, conststruct thermal_zone_params *tzp, unsignedint passive_delay, unsignedint polling_delay)
{ conststruct thermal_trip *trip = trips; struct thermal_zone_device *tz; struct thermal_trip_desc *td; int id; int result;
if (!type || strlen(type) == 0) {
pr_err("No thermal zone type defined\n"); return ERR_PTR(-EINVAL);
}
if (strlen(type) >= THERMAL_NAME_LENGTH) {
pr_err("Thermal zone name (%s) too long, should be under %d chars\n",
type, THERMAL_NAME_LENGTH); return ERR_PTR(-EINVAL);
}
if (num_trips < 0) {
pr_err("Incorrect number of thermal trips\n"); return ERR_PTR(-EINVAL);
}
if (!ops || !ops->get_temp) {
pr_err("Thermal zone device ops not defined or invalid\n"); return ERR_PTR(-EINVAL);
}
if (num_trips > 0 && !trips) return ERR_PTR(-EINVAL);
if (polling_delay && passive_delay > polling_delay) return ERR_PTR(-EINVAL);
if (!thermal_class) return ERR_PTR(-ENODEV);
tz = kzalloc(struct_size(tz, trips, num_trips), GFP_KERNEL); if (!tz) return ERR_PTR(-ENOMEM);
if (tzp) {
tz->tzp = kmemdup(tzp, sizeof(*tzp), GFP_KERNEL); if (!tz->tzp) {
result = -ENOMEM; goto free_tz;
}
}
INIT_LIST_HEAD(&tz->node);
INIT_LIST_HEAD(&tz->trips_high);
INIT_LIST_HEAD(&tz->trips_reached);
INIT_LIST_HEAD(&tz->trips_invalid);
ida_init(&tz->ida);
mutex_init(&tz->lock);
init_completion(&tz->removal);
init_completion(&tz->resume);
id = ida_alloc(&thermal_tz_ida, GFP_KERNEL); if (id < 0) {
result = id; goto free_tzp;
}
tz->ops = *ops; if (!tz->ops.critical)
tz->ops.critical = thermal_zone_device_critical;
tz->device.class = thermal_class;
tz->devdata = devdata;
tz->num_trips = num_trips;
for_each_trip_desc(tz, td) {
td->trip = *trip++;
INIT_LIST_HEAD(&td->thermal_instances);
INIT_LIST_HEAD(&td->list_node); /* * Mark all thresholds as invalid to start with even though * this only matters for the trips that start as invalid and * become valid later.
*/
move_to_trips_invalid(tz, td);
}
/* Unbind all cdevs associated with this thermal zone. */
list_for_each_entry(cdev, &thermal_cdev_list, node)
__thermal_zone_cdev_unbind(tz, cdev);
returntrue;
}
/** * thermal_zone_device_unregister - removes the registered thermal zone device * @tz: the thermal zone device to remove
*/ void thermal_zone_device_unregister(struct thermal_zone_device *tz)
{ if (!tz) return;
/** * thermal_zone_get_zone_by_name() - search for a zone and returns its ref * @name: thermal zone name to fetch the temperature * * When only one zone is found with the passed name, returns a reference to it. * * Return: On success returns a reference to an unique thermal zone with * matching name equals to @name, an ERR_PTR otherwise (-EINVAL for invalid * paramenters, -ENODEV for not found and -EEXIST for multiple matches).
*/ struct thermal_zone_device *thermal_zone_get_zone_by_name(constchar *name)
{ struct thermal_zone_device *pos = NULL, *ref = ERR_PTR(-EINVAL); unsignedint found = 0;
if (tz->state & TZ_STATE_FLAG_RESUMING) { /* * thermal_zone_device_resume() queued up for this zone has not * acquired the lock yet, so release it to let the function run * and wait util it has done the work.
*/
scoped_guard(thermal_zone_reverse, tz) {
wait_for_completion(&tz->resume);
}
}
/* * Replace the work function with the resume one, which will restore the * original work function and schedule the polling work if needed.
*/
INIT_DELAYED_WORK(&tz->poll_queue, thermal_zone_device_resume); /* Queue up the work without a delay. */
mod_delayed_work(system_freezable_power_efficient_wq, &tz->poll_queue, 0);
}
staticint thermal_pm_notify(struct notifier_block *nb, unsignedlong mode, void *_unused)
{ switch (mode) { case PM_HIBERNATION_PREPARE: case PM_RESTORE_PREPARE: case PM_SUSPEND_PREPARE:
thermal_pm_notify_prepare(); break; case PM_POST_HIBERNATION: case PM_POST_RESTORE: case PM_POST_SUSPEND:
thermal_pm_notify_complete(); break; default: break;
} return 0;
}
staticstruct notifier_block thermal_pm_nb = {
.notifier_call = thermal_pm_notify, /* * Run at the lowest priority to avoid interference between the thermal * zone resume work items spawned by thermal_pm_notify() and the other * PM notifiers.
*/
.priority = INT_MIN,
};
staticint __init thermal_init(void)
{ int result;
thermal_debug_init();
result = thermal_netlink_init(); if (result) goto error;
result = thermal_register_governors(); if (result) goto unregister_netlink;
thermal_class = kzalloc(sizeof(*thermal_class), GFP_KERNEL); if (!thermal_class) {
result = -ENOMEM; goto unregister_governors;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.