This patch set enhances the stability and reliability of CPU temperature monitoring drivers for VIA and Zhaoxin processors during system suspend/resume cycles. Key improvements across both patches include: 1. Adding conditional checks using the cpuhp_tasks_frozen flag in the *_online and *_down_prep functions of each driver. 2. Skipping non-essential device allocation/removal processes when the system is in a suspend or resume state. 3. Preventing potential system lock-ups caused by conflicting device operations during power state transitions, ensuring smooth temperature monitoring continuity. The set modifies two separate driver files: * drivers/hwmon/via-cputemp.c: Optimizes VIA CPU temperature driver behavior. * drivers/hwmon/zhaoxin-cputemp.c: Improves Zhaoxin CPU temperature driver handling during suspend/resume.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5933