clocksource: sh_mtu2: Replace global spinlock with a per-device spinlock
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 4 Mar 2014 14:25:56 +0000 (15:25 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 2 Jul 2014 14:01:50 +0000 (16:01 +0200)
commit8b2463d8cae2dda0c98ab5a15f25a0350a0e998d
tree5c314dcdf601781735b00b03b2fbc381e282e1ce
parent1a5da0e43be0c07462e445549dbdd4a1731a3e11
clocksource: sh_mtu2: Replace global spinlock with a per-device spinlock

The global spinlock is used to protect the shared start/stop register.
Now that all MTU2 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: Wolfram Sang <wsa@sang-engineering.com>
drivers/clocksource/sh_mtu2.c