thermal: rcar: use mutex lock instead of spin lock
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 31 Jan 2013 09:03:22 +0000 (09:03 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 6 Feb 2013 06:13:57 +0000 (14:13 +0800)
commitb2bbc6a2ace78eaca2f6482b58b984519aa783ac
tree1273d37753c5eaffde6f8627dd432a6299c9c5d7
parentf8f53e1874c2dfddf4c6dc69008ba85d6de4d944
thermal: rcar: use mutex lock instead of spin lock

Current R-Car thermal driver is using spin lock for each
registers read/write, but it is pointless lock.
This lock is required while reading temperature,
but it needs long wait (= 300ms).
So, this patch used mutex lock while reading temperature,
instead of spin lock for each registers.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c
This page took 0.023618 seconds and 5 git commands to generate.