Feb. 2, 2017
4:28 p.m.
On Thu, 02 Feb 2017 08:54:27 -0600, Siddhartha Baral said:
I am trying to add a new thermal zone driver for HDD which will be part of the thermal framework in the kernel.
First Law of Systems Programming: Never test for an error condition you don't know how to handle anyhow. If the disk reports that it is over-temperature, *what can you do about it*? If a CPU gets too hot you can reduce the clock frequency. You don't have that sort of option on a disk drive - especially from inside the kernel. You can't change its rotation rate, and throttling I/O won't significantly change the temperature (but can hang the system if writeback of dirty pages stops....)