clockevents/drivers/arm_global_timer: Use writel_relaxed in gt_compare_set
authorJisheng Zhang <jszhang@marvell.com>
Thu, 26 Nov 2015 12:20:38 +0000 (20:20 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 16 Dec 2015 08:44:23 +0000 (09:44 +0100)
commit08e4b44852626f3549c8bd45308431d9c9e0ee6d
tree199a125a955ce755018af169f9d1096d77d3b76d
parent520ddad4e560423a320bc1861792da19b0b879f9
clockevents/drivers/arm_global_timer: Use writel_relaxed in gt_compare_set

Use the relaxed version to improve performance. we measured time of
4096 rounds of gt_compare_set() spent on Marvell BG2Q:

before the patch: 3690648ns on average
after the patch: 1083023ns on average

improved by 70%!

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_global_timer.c