diff options
| author | Sergei Shtylyov <[email protected]> | 2018-09-10 20:22:16 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2018-10-03 12:36:58 +0000 |
| commit | 37e7742c55ba856eaec7e35673ee370f36eb17f3 (patch) | |
| tree | 4da2076a1b16c7ebaa9e531d1ee660241b56d67e /drivers/clocksource/qcom-timer.c | |
| parent | clocksource/drivers/sh_cmt: Fixup for 64-bit machines (diff) | |
| download | kernel-37e7742c55ba856eaec7e35673ee370f36eb17f3.tar.gz kernel-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 <[email protected]>
Signed-off-by: Sergei Shtylyov <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/clocksource/qcom-timer.c')
0 files changed, 0 insertions, 0 deletions
