From: Alison Wang <b18965@freescale.com>
To: <mark.rutland@arm.com>, <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Cc: Alison Wang <alison.wang@freescale.com>
Subject: [PATCH] arm: kernel: utilize hrtimer based broadcast
Date: Fri, 17 Jul 2015 17:11:52 +0800 [thread overview]
Message-ID: <1437124312-44700-1-git-send-email-b18965@freescale.com> (raw)
Hrtimer based broadcast is used on ARM platform. It can be
registered as the tick broadcast device in the absence of
a real external clock device.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
---
arch/arm/kernel/time.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index a66e37e..a9bc73c 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -12,6 +12,7 @@
* reading the RTC at bootup, etc...
*/
#include <linux/clk-provider.h>
+#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/errno.h>
#include <linux/export.h>
@@ -121,5 +122,7 @@ void __init time_init(void)
of_clk_init(NULL);
#endif
clocksource_of_init();
+
+ tick_setup_hrtimer_broadcast();
}
}
--
2.1.0.27.g96db324
next reply other threads:[~2015-07-17 9:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 9:11 Alison Wang [this message]
2015-10-27 2:58 ` [PATCH] arm: kernel: utilize hrtimer based broadcast Huan Wang
2015-10-27 8:18 ` Mark Rutland
2015-11-06 6:35 ` Huan Wang
2015-12-28 7:18 ` Huan Wang
2015-12-28 11:54 ` Arnd Bergmann
2015-12-29 13:54 ` Thomas Gleixner
2016-01-02 10:29 ` Russell King - ARM Linux
2016-01-05 9:42 ` Thomas Gleixner
2017-12-01 3:33 ` Alison Wang
2019-04-03 2:36 ` Yang Li
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=1437124312-44700-1-git-send-email-b18965@freescale.com \
--to=b18965@freescale.com \
--cc=alison.wang@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
/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