lede/package/lean/autocore
Chuck e17961f67e
optimize the performance of obtaining CPU temperature (#6398)
Preformance Test (on NanoPi R2s, repeat 1000 times):

old command:

temp="$(awk "BEGIN{printf (\"%.1f\n\",$(cat /sys/class/thermal/thermal_zone0/temp)/1000) }")°C"

```
real    0m 9.20s
user    0m 3.29s
sys     0m 6.24s
```

new command:

temp="$(awk '{ printf("%.1f °C", $0 / 1000) }' /sys/class/thermal/thermal_zone0/temp)"

```
real    0m 5.57s
user    0m 1.78s
sys     0m 3.97s
```

Signed-off-by: Chuck <fanck0605@qq.com>
2021-02-21 12:27:55 +08:00
..
files optimize the performance of obtaining CPU temperature (#6398) 2021-02-21 12:27:55 +08:00
Makefile autocore: avoid resource busy issue on rpi4 (#6095) 2020-12-25 14:32:13 +08:00