Thread (39 messages) 39 messages, 6 authors, 2015-04-28

[PATCH 04/13] thermal: Fix not emulating critical temperatures

From: s.hauer@pengutronix.de (Sascha Hauer)
Date: 2015-03-26 18:55:49
Also in: linux-mediatek, linux-pm, lkml

+Cc Amit who implemented the emulation code.

On Thu, Mar 26, 2015 at 02:13:47PM -0400, Carlos Hernandez wrote:
On 03/26/2015 11:53 AM, Sascha Hauer wrote:
quoted
- The code should only accept an emulated temperature when the emulated
  temperature is lower than the critical temperature. Instead the code
Why?
Emulating temperatures higher than critical temperature is useful
for testing. For instance it allows one to validate that critical
action (i.e. shutdown) is triggered.
Not emulating critical temperatures was the intention of the original
patch adding the emulation code, but it was implemented wrongly. I just
fix to the intended behaviour.
However, I also find emulating critical temperatures useful. I could
also remove the check instead of fixing it if we can agree on that
behaviour.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help