diff options
| -rw-r--r-- | drivers/thermal/rcar_thermal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 88cfeec6a28f..5a37940b02c9 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c | |||
| @@ -299,12 +299,17 @@ static void _rcar_thermal_irq_ctrl(struct rcar_thermal_priv *priv, int enable) | |||
| 299 | static void rcar_thermal_work(struct work_struct *work) | 299 | static void rcar_thermal_work(struct work_struct *work) |
| 300 | { | 300 | { |
| 301 | struct rcar_thermal_priv *priv; | 301 | struct rcar_thermal_priv *priv; |
| 302 | unsigned long cctemp, nctemp; | ||
| 302 | 303 | ||
| 303 | priv = container_of(work, struct rcar_thermal_priv, work.work); | 304 | priv = container_of(work, struct rcar_thermal_priv, work.work); |
| 304 | 305 | ||
| 306 | rcar_thermal_get_temp(priv->zone, &cctemp); | ||
| 305 | rcar_thermal_update_temp(priv); | 307 | rcar_thermal_update_temp(priv); |
| 306 | rcar_thermal_irq_enable(priv); | 308 | rcar_thermal_irq_enable(priv); |
| 307 | thermal_zone_device_update(priv->zone); | 309 | |
| 310 | rcar_thermal_get_temp(priv->zone, &nctemp); | ||
| 311 | if (nctemp != cctemp) | ||
| 312 | thermal_zone_device_update(priv->zone); | ||
| 308 | } | 313 | } |
| 309 | 314 | ||
| 310 | static u32 rcar_thermal_had_changed(struct rcar_thermal_priv *priv, u32 status) | 315 | static u32 rcar_thermal_had_changed(struct rcar_thermal_priv *priv, u32 status) |
