From: tip-bot for Linus Walleij <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linus.walleij@linaro.org, linux-kernel@vger.kernel.org,
alexander.sverdlin@gmail.com, daniel.lezcano@linaro.org,
hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org
Subject: [tip:timers/urgent] clocksource: Mmio: remove artificial 32bit limitation
Date: Thu, 10 Dec 2015 10:40:55 -0800 [thread overview]
Message-ID: <tip-e2bf3e6ecaff79c5479682da2dc7b2035e52c5b8@git.kernel.org> (raw)
In-Reply-To: <1449768101-6879-1-git-send-email-linus.walleij@linaro.org>
Commit-ID: e2bf3e6ecaff79c5479682da2dc7b2035e52c5b8
Gitweb: http://git.kernel.org/tip/e2bf3e6ecaff79c5479682da2dc7b2035e52c5b8
Author: Linus Walleij <linus.walleij@linaro.org>
AuthorDate: Thu, 10 Dec 2015 18:21:41 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 10 Dec 2015 19:37:18 +0100
clocksource: Mmio: remove artificial 32bit limitation
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: 000bc17817bf "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>
---
drivers/clocksource/mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c
index 1593ade..c4f7d7a 100644
--- a/drivers/clocksource/mmio.c
+++ b/drivers/clocksource/mmio.c
@@ -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);
prev parent reply other threads:[~2015-12-10 18:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 17:21 [PATCH] clocksource: mmio: remove artificial 32bit limitation Linus Walleij
2015-12-10 18:40 ` tip-bot for Linus Walleij [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-e2bf3e6ecaff79c5479682da2dc7b2035e52c5b8@git.kernel.org \
--to=tipbot@zytor.com \
--cc=alexander.sverdlin@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=hpa@zytor.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox