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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:16 +0000 (09:24 +0900)
commitbe146e2fb82709492e5685b28ac96b6ea92ce7a3
treebfb0ee77727a59d217c8f702552353d09a4cc9bf
parent0125ea0bce0f7ff90a2c47f966a896090220af1b
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>
(cherry picked from commit 8b2463d8cae2dda0c98ab5a15f25a0350a0e998d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_mtu2.c