clocksource: sh_tmu: Replace global spinlock with a per-device spinlock
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 17 Feb 2014 15:49:05 +0000 (16:49 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 2 Jul 2014 14:01:49 +0000 (16:01 +0200)
commit2b027f1f0f887097b4140a71b5c1e878da1e2fd9
tree96c8c11fbdbb7dd3eb2ec29b26373cf76642cb8e
parent681b9e852cf2d48ebd63954028814c7cece71945
clocksource: sh_tmu: Replace global spinlock with a per-device spinlock

The global spinlock is used to protect the shared start/stop register.
Now that all TMU channels are handled by a single device instance, use a
per-device spinlock.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_tmu.c