nuttx-mirror/drivers
wangjianyu3 b2fc3b2d7f Thermal/step_wise: Fix that hysteresis takes no effect
Test command

  nsh> cat /proc/thermal/cpu-thermal

Trips

  /* Copy from drivers/thermal/thermal_dummy.c */

  {.name = "cpu_crit",   .temp = 90, .hyst = 5, .type = THERMAL_CRITICAL},
  {.name = "cpu_alert1", .temp = 70, .hyst = 5, .type = THERMAL_HOT},
  {.name = "cpu_alert0", .temp = 60, .hyst = 5, .type = THERMAL_NORMAL},

Without this patch

  # Error occured when temperature jump to 69.

  z:cpu-thermal t:67 t:1 h:16 l:0 c:fan0 s:0|(invalid)
  z:cpu-thermal t:72 t:1 h:16 l:0 c:fan0 s:1|1
  z:cpu-thermal t:69 t:1 h:16 l:0 c:fan0 s:0|0
  z:cpu-thermal t:74 t:1 h:16 l:0 c:fan0 s:1|1

With this patch

  z:cpu-thermal t:67 t:1 h:16 l:0 c:fan0 s:0|(invalid)
  z:cpu-thermal t:72 t:1 h:16 l:0 c:fan0 s:1|1
  z:cpu-thermal t:69 t:1 h:16 l:0 c:fan0 s:1|1
  z:cpu-thermal t:74 t:1 h:16 l:0 c:fan0 s:2|2

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-12-28 11:42:09 +08:00
..
1wire drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
aie drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
analog drivers/adc: Rename up_ads1255initialize to ads1255_initialize 2024-11-16 17:39:27 +01:00
audio wm8776: use small lock in drivers/audio/wm8776.c 2024-12-05 21:22:32 +08:00
bch drivers/bch/bchdev_driver.c: Fix BIOC_FLUSH 2024-12-19 19:22:22 +08:00
can com/can: Remove unnecessary judgment logic 2024-12-03 08:48:18 +08:00
clk drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
contactless drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
coresight drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
crypto crypto/se05x: Allow set_enable_pin to be NULL and fix error handling 2024-11-07 11:37:58 +08:00
devicetree limits/path: replace CONFIG_PATH_MAX to PATH_MAX to ensure consistency 2024-12-10 21:56:57 +08:00
dma drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
dummy drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
eeprom drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
efuse drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i2c use small lock in following files 2024-12-28 11:39:50 +08:00
i2s drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i3c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
input drivers/input/uinput: migrate to ASF license 2024-12-19 15:29:10 +08:00
ioexpander sim/configs/rpserver/rpproxy_virtio: Change the sim 32bit to 64bit compilation 2024-11-15 14:01:11 +08:00
ipcc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
lcd st7789: add configuration option to set default background color 2024-11-29 18:32:22 +08:00
leds drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
loop drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
math drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
misc drivers/misc: fix rpmsg dev poll assert crash 2024-11-12 14:58:53 +08:00
mmcsd drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
modem drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
motor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mtd drivers/mtd/mtd_config_fs: migrate to SPDX identifier 2024-12-19 15:29:10 +08:00
net drivers/e1000: malloc size error 2024-12-28 11:41:19 +08:00
note arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
pci pci: fix pci dev alloc bridge mem error 2024-12-06 21:12:24 +08:00
pinctrl drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pipes Revert "drivers/pipes: return after short write if buffer is full" 2024-11-26 11:08:02 -03:00
power use small lock in following files 2024-12-28 11:39:50 +08:00
rc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
regmap drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
reset arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
rf drivers/rf: migrate license to ASF 2024-11-06 19:46:13 +08:00
rmt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rpmsg arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
rptun drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
segger spelling: fix spelling typo premption -> preemption 2024-11-25 22:05:05 +08:00
sensors drivers/sensors/gnss: Fix deactivate failure when using both topic and device 2024-12-28 11:40:48 +08:00
serial fix a deadlock 2024-12-28 11:39:50 +08:00
spi drivers/spi/ice40: migrate to SPDX identifier 2024-12-17 08:37:13 +08:00
syslog drivers/syslog/syslog_channel.c: remove a duplicated comment 2024-11-18 19:10:24 +08:00
thermal Thermal/step_wise: Fix that hysteresis takes no effect 2024-12-28 11:42:09 +08:00
timers drivers/timers: export arch timer api to support higher resolution 2024-12-04 10:52:26 +01:00
usbdev drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usbhost drivers/usbhost/hid_parser: migrate to SPDX identifier 2024-12-19 15:29:10 +08:00
usbmisc driver for STUSB4500 2024-11-30 08:40:08 -03:00
usbmonitor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usrsock drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
vhost drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
video video/fb: fix integer overflow issue 2024-12-02 13:30:50 +08:00
virtio virtio: fix compile error 2024-12-06 20:32:21 +08:00
wireless use small lock in following files 2024-12-28 11:39:50 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
drivers_initialize.c Fix some minor style issues 2024-11-20 10:51:07 +01:00
Kconfig AI engine driver 2024-10-16 13:57:23 +08:00
Makefile drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00