clocksource: sh_cmt: 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:48 +0000 (16:01 +0200)
commitde599c8843ebbdfc29a119c94af481b1de76700e
treef3c1aa973374bc1c9a29ebdc80e5ef28fbe19c91
parent31e912f598371bcfdffc990289029e1110f8b3f9
clocksource: sh_cmt: Replace global spinlock with a per-device spinlock

The global spinlock is used to protect the shared start/stop register.
Now that all CMT 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_cmt.c