/linux/drivers/acpi/ |
H A D | thermal.c | 54 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid 62 "ACPI thermal trip point %s changed\n" \ 68 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points."); 72 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points."); 84 MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); 94 struct acpi_thermal_trip trip; member 101 struct acpi_thermal_trip trip; member 194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index() 229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument 231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip() [all …]
|
H A D | thermal_lib.c | 6 * Library routines for retrieving trip point temperature values from the 90 * thermal_acpi_active_trip_temp - Retrieve active trip point temperature 96 * the temperature of the active cooling trip point corresponding to the active 111 * thermal_acpi_passive_trip_temp - Retrieve passive trip point temperature 116 * the temperature of the passive cooling trip point. 130 * thermal_acpi_hot_trip_temp - Retrieve hot trip point temperature 135 * the temperature of the trip point at which the system is expected to be put 150 * thermal_acpi_critical_trip_temp - Retrieve critical trip point temperature 155 * the temperature of the critical cooling trip point.
|
/linux/drivers/thermal/ |
H A D | Kconfig | 12 Each thermal zone contains its own temperature, trip points, 26 trip point crossed, cooling device update or governor 49 with trip points in order to exercise the thermal core 61 poweroff kicks in. Similarly to the critical trip point, 121 The Userspace governor allows to get trip point crossed 139 devices one step at the time, taking into account the trip 237 user can manually input temperature and test the different trip 264 CPUs when the passive trip is crossed. 274 It supports one critical trip point and one passive trip point. The 276 passive trip is crossed. [all …]
|
H A D | thermal_of.c | 25 * into the device tree binding of 'trip', property type. 37 * @type: Pointer to resulting trip type 39 * The function gets trip type string from property 'type', 64 struct thermal_trip *trip) in thermal_of_populate_trip() argument 74 trip->temperature = prop; in thermal_of_populate_trip() 81 trip->hysteresis = prop; in thermal_of_populate_trip() 83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip() 85 pr_err("wrong trip type property\n"); in thermal_of_populate_trip() 89 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip() 91 trip->priv = np; in thermal_of_populate_trip() [all …]
|
H A D | thermal_sysfs.c | 91 &td->trip; \ 98 struct thermal_trip *trip = thermal_trip_of_attr(attr, type); in trip_point_type_show() local 100 return sprintf(buf, "%s\n", thermal_trip_type_name(trip->type)); in trip_point_type_show() 107 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_store() local 116 if (temp == trip->temperature) in trip_point_temp_store() 121 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) in trip_point_temp_store() 127 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store() 132 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store() 143 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_show() local 145 return sprintf(buf, "%d\n", READ_ONCE(trip->temperature)); in trip_point_temp_show() [all …]
|
H A D | thermal_helpers.c | 25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() argument 30 tz->ops.get_trend(tz, trip, &trend)) { in get_tz_trend() 44 const struct thermal_trip *trip) in thermal_instance_present() argument 46 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_instance_present() 58 const struct thermal_trip *trip, in thermal_trip_is_bound_to_cdev() argument 64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev() 94 const struct thermal_trip *trip = &td->trip; in __thermal_zone_get_temp() local 96 if (trip->type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp() 97 crit_temp = trip->temperature; in __thermal_zone_get_temp()
|
H A D | gov_power_allocator.c | 75 * @trip_switch_on: first passive trip point of the thermal zone. The 76 * governor switches on when this trip point is crossed. 77 * If the thermal zone only has one passive trip point, 79 * @trip_max: last passive trip point of the thermal zone. The 143 * @trip_switch_on: trip point for the switch on temperature 164 * passive trip points at the same temperature, that person in estimate_pid_constants() 486 * get_governor_trips() - get the two trip points that are key for this governor 491 * a "switch on" trip point and a "maximum desired temperature". These 492 * are defined as the first and last passive trip points. 494 * If there is only one trip point, then that's considered to be the [all …]
|
H A D | thermal_trip.c | 35 ret = cb(&td->trip, data); in for_each_thermal_trip() 63 /* No need to change trip points */ in thermal_zone_set_trips() 83 const struct thermal_trip *trip) in thermal_zone_trip_id() argument 86 * Assume the trip to be located within the bounds of the thermal in thermal_zone_trip_id() 89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
|
H A D | thermal_debugfs.h | 12 const struct thermal_trip *trip); 14 const struct thermal_trip *trip); 26 const struct thermal_trip *trip) {}; in thermal_debug_tz_trip_up() argument 28 const struct thermal_trip *trip) {} in thermal_debug_tz_trip_down() argument
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5422-odroidxu3-common.dtsi | 94 trip = <&cpu0_alert0>; 98 trip = <&cpu0_alert1>; 102 trip = <&cpu0_alert2>; 111 trip = <&cpu0_alert3>; 127 trip = <&cpu0_alert4>; 177 trip = <&cpu1_alert0>; 181 trip = <&cpu1_alert1>; 185 trip = <&cpu1_alert2>; 189 trip = <&cpu1_alert3>; 200 trip = <&cpu1_alert4>; [all …]
|
H A D | exynos5422-odroidhc1.dts | 60 trip = <&cpu0_alert0>; 76 trip = <&cpu0_alert1>; 109 trip = <&cpu1_alert0>; 120 trip = <&cpu1_alert1>; 153 trip = <&cpu2_alert0>; 164 trip = <&cpu2_alert1>; 197 trip = <&cpu3_alert0>; 208 trip = <&cpu3_alert1>; 241 trip = <&gpu_alert0>; 245 trip = <&gpu_alert1>;
|
/linux/drivers/thermal/qcom/ |
H A D | qcom-spmi-temp-alarm.c | 66 /* Over-temperature trip point values in mC */ 358 const struct thermal_trip *trip, int temp) in qpnp_tm_set_trip_temp() argument 363 if (trip->type != THERMAL_TRIP_CRITICAL) in qpnp_tm_set_trip_temp() 378 static int qpnp_tm_gen2_rev2_set_temp_thresh(struct qpnp_tm_chip *chip, unsigned int trip, int temp) in qpnp_tm_gen2_rev2_set_temp_thresh() argument 385 if (trip >= STAGE_COUNT) { in qpnp_tm_gen2_rev2_set_temp_thresh() 386 dev_err(chip->dev, "invalid TEMP_DAC trip = %d\n", trip); in qpnp_tm_gen2_rev2_set_temp_thresh() 388 } else if (temp < TEMP_DAC_MIN || temp > temp_dac_max[trip]) { in qpnp_tm_gen2_rev2_set_temp_thresh() 396 ret = qpnp_tm_write(chip, QPNP_TM_REG_TEMP_DAC_STG1 + trip, reg); in qpnp_tm_gen2_rev2_set_temp_thresh() 402 chip->temp_thresh_map[trip] = temp_cfg; in qpnp_tm_gen2_rev2_set_temp_thresh() 408 const struct thermal_trip *trip, int temp) in qpnp_tm_gen2_rev2_set_trip_temp() argument [all …]
|
/linux/arch/arm64/boot/dts/marvell/ |
H A D | armada-8040-clearfog-gt-8k.dts | 118 ap_active: trip-active { 126 trip = <&ap_active>; 130 trip = <&ap_crit>; 139 cp0_active0: trip-active0 { 144 cp0_active1: trip-active1 { 149 cp0_active2: trip-active2 { 154 cp0_active3: trip-active3 { 162 trip = <&cp0_active0>; 166 trip = <&cp0_active1>; 170 trip = <&cp0_active2>; [all …]
|
/linux/Documentation/devicetree/bindings/thermal/ |
H A D | db8500-thermal.txt | 9 - num-trips : number of total trip points, this is required, set it 0 if none, 11 - tripN-temp : temperature of trip point N, should be in ascending order; 12 - tripN-type : type of trip point N, should be one of "active" "passive" "hot" 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 15 point N, this is required if trip point N is defined, set it 0 if none, 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N;
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-thermal | 31 trip points so that user application can take full 51 The temperature above which trip point will be fired. 59 Strings which indicate the type of the trip point. 68 The hysteresis value for a trip point, represented as an 84 The trip point in this thermal zone which `cdev[0-*]` is 86 associated with any trip point. 142 temperature" trip point. For more information see 152 temperature" trip point. For more information see 159 Temperature offset from the desired temperature trip point 164 temperature trip point. For more information see
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos5433-tmu.dtsi | 57 trip = <&atlas0_alert_0>; 63 trip = <&atlas0_alert_1>; 69 trip = <&atlas0_alert_2>; 75 trip = <&atlas0_alert_3>; 81 trip = <&atlas0_alert_4>; 87 trip = <&atlas0_alert_5>; 93 trip = <&atlas0_alert_6>; 231 trip = <&apollo_alert_2>; 237 trip = <&apollo_alert_3>; 243 trip = <&apollo_alert_4>; [all …]
|
/linux/tools/thermal/tmon/ |
H A D | tmon.8 | 24 - show trip point binding within each thermal zone 25 - show trip point and cooling device instance bindings 28 - show temperature of all thermal zones w.r.t. its trip points and types 39 zones, and trip points. Can be used for data collection in remote 69 \fBP \fP passive cooling trip point type 70 \fBA \fP active cooling trip point type (fan) 71 \fBC \fP critical trip point type 72 \fBA \fP hot trip point type
|
H A D | sysfs.c | 121 /* scan and fill in trip point info for a thermal zone and trip point id */ 130 /* check trip point type */ in get_trip_point_data() 165 /* Find trip point info of a thermal zone */ 174 /* check if trip point temp is non-zero in find_tzone_tp() 175 * ignore 0/invalid trip points in find_tzone_tp() 180 /* found a valid trip point */ in find_tzone_tp() 182 syslog(LOG_DEBUG, "tzone %s trip %d temp %lu tpnode %s", in find_tzone_tp() 228 /* find the trip point in which the cdev is binded to in find_tzone_cdev() 235 /* validate trip point range, e.g. trip could return -1 in find_tzone_cdev() 241 syslog(LOG_DEBUG, "cdev %s -> trip:%lu: 0x%lx %d\n", in find_tzone_cdev() [all …]
|
/linux/drivers/thermal/testing/ |
H A D | command.c | 29 * The thermal zone template can be populated with trip points with the help of 34 * which causes a trip point template to be added to the test thermal zone 40 * The temperature of a trip point template is initially THERMAL_TEMP_INVALID 42 * "trip_x_temp" and "trip_x_hyst" files correspoinding to that trip point 57 * thermal zone and the set of trip point templates associated with it is used 58 * for populating the new thermal zone's trip points table. The type of the new 61 * The temperature and hysteresis of all of the trip points in that new thermal 71 * core, including checking its trip points, sending notifications to user space
|
/linux/Documentation/driver-api/thermal/ |
H A D | x86_pkg_temperature_thermal.rst | 23 zone with maximum two user mode configurable trip points. Number of trip points 24 depends on the capability of the package. Once the trip point is violated, 37 This contains two trip points: 46 Any value other than 0 in these trip points, can trigger thermal notifications.
|
H A D | power_allocator.rst | 5 Trip points 8 The governor works optimally with the following two passive trip points: 10 1. "switch on" trip point: temperature above which the governor 11 control loop starts operating. This is the first passive trip 14 2. "desired temperature" trip point: it should be higher than the 15 "switch on" trip point. This the target temperature the governor 16 is controlling for. This is the last passive trip point of the 107 above "desired temperature" trip point). Conversely, `k_pu` is the 109 (current temperature below "desired temperature" trip point).
|
/linux/include/uapi/linux/ |
H A D | thermal.h | 74 THERMAL_GENL_EVENT_TZ_TRIP_UP, /* Trip point crossed the way up */ 75 THERMAL_GENL_EVENT_TZ_TRIP_DOWN, /* Trip point crossed the way down */ 76 THERMAL_GENL_EVENT_TZ_TRIP_CHANGE, /* Trip point changed */ 77 THERMAL_GENL_EVENT_TZ_TRIP_ADD, /* Trip point added */ 78 THERMAL_GENL_EVENT_TZ_TRIP_DELETE, /* Trip point deleted */
|
/linux/rust/kernel/sync/atomic/ |
H A D | predefine.rs | 8 // SAFETY: `i32` has the same size and alignment with itself, and is round-trip transmutable to 21 // SAFETY: `i64` has the same size and alignment with itself, and is round-trip transmutable to 50 // SAFETY: `isize` has the same size and alignment with `isize_atomic_repr`, and is round-trip 63 // SAFETY: `u32` and `i32` has the same size and alignment, and `u32` is round-trip transmutable to 76 // SAFETY: `u64` and `i64` has the same size and alignment, and `u64` is round-trip transmutable to 89 // SAFETY: `usize` has the same size and alignment with `isize_atomic_repr`, and is round-trip
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8192.dtsi | 1963 cpu0_alert: trip-alert { 1969 cpu0_crit: trip-crit { 1978 trip = <&cpu0_alert>; 1993 cpu1_alert: trip-alert { 1999 cpu1_crit: trip-crit { 2008 trip = <&cpu1_alert>; 2023 cpu2_alert: trip-alert { 2029 cpu2_crit: trip-crit { 2038 trip = <&cpu2_alert>; 2053 cpu3_alert: trip-alert { [all …]
|
/linux/drivers/thermal/intel/ |
H A D | intel_soc_dts_iosf.c | 133 const struct thermal_trip *trip, in sys_set_trip_temp() argument 138 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in sys_set_trip_temp() 221 /* Check if the writable trip we provide is not used by BIOS */ in add_dts_thermal_zone() 297 static void set_trip(struct thermal_trip *trip, enum thermal_trip_type type, in set_trip() argument 300 trip->type = type; in set_trip() 301 trip->flags = flags; in set_trip() 302 trip->temperature = temp; in set_trip() 303 trip->priv = THERMAL_INT_TO_TRIP_PRIV(index); in set_trip()
|