Skip to content

Commit

Permalink
clocksource: Mmio: remove artificial 32bit limitation
Browse files Browse the repository at this point in the history
The EP93xx is registering a clocksource of 40 bits with
clocksource_mmio_init() but this is not working because of this
artificial limitation. It works fine to lift the uppe limit to
64 bits, and since cycle_t is u64, it should intuitively have been
like that from the beginning.

Fixes: 000bc17 "ARM: ep93xx: switch to GENERIC_CLOCKEVENTS"
Reported-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/1449768101-6879-1-git-send-email-linus.walleij@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Linus Walleij authored and Thomas Gleixner committed Dec 10, 2015
1 parent 6764e5e commit e2bf3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int __init clocksource_mmio_init(void __iomem *base, const char *name,
{
struct clocksource_mmio *cs;

if (bits > 32 || bits < 16)
if (bits > 64 || bits < 16)
return -EINVAL;

cs = kzalloc(sizeof(struct clocksource_mmio), GFP_KERNEL);
Expand Down

0 comments on commit e2bf3e6

Please sign in to comment.