Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1181423 > unrolled thread
| Started by | Alison Wang <b18965@freescale.com> |
|---|---|
| First post | 2015-07-10 11:50 +0200 |
| Last post | 2015-07-10 11:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] arm: ls1021a: utilize hrtimer based broadcast mode Alison Wang <b18965@freescale.com> - 2015-07-10 11:50 +0200
| From | Alison Wang <b18965@freescale.com> |
|---|---|
| Date | 2015-07-10 11:50 +0200 |
| Subject | [PATCH] arm: ls1021a: utilize hrtimer based broadcast mode |
| Message-ID | <pKD6q-4eQ-3@gated-at.bofh.it> |
Hrtimer based broadcast mode is used instead of
periodic tick broadcast to provide high resolution
clock in SMP.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
---
arch/arm/mach-imx/mach-ls1021a.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/mach-imx/mach-ls1021a.c b/arch/arm/mach-imx/mach-ls1021a.c
index b89c858..1a1a115 100644
--- a/arch/arm/mach-imx/mach-ls1021a.c
+++ b/arch/arm/mach-imx/mach-ls1021a.c
@@ -8,9 +8,19 @@
*/
#include <asm/mach/arch.h>
+#include <linux/clk-provider.h>
+#include <linux/clockchips.h>
+#include <linux/clocksource.h>
#include "common.h"
+static void __init ls1021a_init_time(void)
+{
+ of_clk_init(NULL);
+ clocksource_of_init();
+ tick_setup_hrtimer_broadcast();
+}
+
static const char * const ls1021a_dt_compat[] __initconst = {
"fsl,ls1021a",
NULL,
@@ -18,5 +28,6 @@ static const char * const ls1021a_dt_compat[] __initconst = {
DT_MACHINE_START(LS1021A, "Freescale LS1021A")
.smp = smp_ops(ls1021a_smp_ops),
+ .init_time = ls1021a_init_time,
.dt_compat = ls1021a_dt_compat,
MACHINE_END
--
2.1.0.27.g96db324
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web