Re: [PATCH v2] thermal: Intel SoC DTS: Don't do thermal zone update inside spin_lock

2014-12-07 Thread Zhang Rui
On Fri, 2014-11-28 at 10:11 +0800, Maurice Petallo wrote: > The driver calls spin_lock_irqsave during DTS interrupt. The interrupt > handle then calls thermal_zone_device_update which implicitly calls > a sleep function and produce the following bug: > > BUG: sleeping function called from invalid

[PATCH v2] thermal: Intel SoC DTS: Don't do thermal zone update inside spin_lock

2014-11-27 Thread Maurice Petallo
The driver calls spin_lock_irqsave during DTS interrupt. The interrupt handle then calls thermal_zone_device_update which implicitly calls a sleep function and produce the following bug: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:97 in_atomic(): 1, irqs_disabled()