diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-09-10 22:22:16 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-10-03 14:36:58 +0200 |
commit | 37e7742c55ba856eaec7e35673ee370f36eb17f3 (patch) | |
tree | 4da2076a1b16c7ebaa9e531d1ee660241b56d67e /crypto/jitterentropy.c | |
parent | clocksource/drivers/sh_cmt: Fixup for 64-bit machines (diff) | |
download | linux-37e7742c55ba856eaec7e35673ee370f36eb17f3.tar.xz linux-37e7742c55ba856eaec7e35673ee370f36eb17f3.zip |
clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines
The driver seems to abuse *unsigned long* not only for the (32-bit)
register values but also for the 'sh_cmt_channel::total_cycles' which
needs to always be 64-bit -- as a result, the clocksource's mask is
needlessly clamped down to 32-bits on the 32-bit machines...
Fixes: 19bdc9d061bc ("clocksource: sh_cmt clocksource support")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'crypto/jitterentropy.c')
0 files changed, 0 insertions, 0 deletions