From patchwork Fri Jul 10 09:39:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Wang X-Patchwork-Id: 6764231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 92D17C05AC for ; Fri, 10 Jul 2015 09:46:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCBE020607 for ; Fri, 10 Jul 2015 09:46:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E16A1205FC for ; Fri, 10 Jul 2015 09:46:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDUr4-0005jW-Ey; Fri, 10 Jul 2015 09:44:26 +0000 Received: from mail-by2on0129.outbound.protection.outlook.com ([207.46.100.129] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDUr1-0005bk-Dh for linux-arm-kernel@lists.infradead.org; Fri, 10 Jul 2015 09:44:23 +0000 Received: from CH1PR03CA001.namprd03.prod.outlook.com (10.255.156.146) by BY1PR0301MB0872.namprd03.prod.outlook.com (10.160.194.142) with Microsoft SMTP Server (TLS) id 15.1.201.16; Fri, 10 Jul 2015 09:43:48 +0000 Received: from BN1AFFO11FD029.protection.gbl (10.255.156.132) by CH1PR03CA001.outlook.office365.com (10.255.156.146) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Fri, 10 Jul 2015 09:43:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD029.mail.protection.outlook.com (10.58.52.184) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Fri, 10 Jul 2015 09:43:47 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t6A9hhIR013430; Fri, 10 Jul 2015 02:43:43 -0700 From: Alison Wang To: , , , Subject: [PATCH] arm: ls1021a: utilize hrtimer based broadcast mode Date: Fri, 10 Jul 2015 17:39:05 +0800 Message-ID: <1436521145-21055-1-git-send-email-b18965@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD029; 1:eXcccyAifoqEk86jWLOHNeMcit5pgBSKwnKUGFqLZLcX6XXblQx4BD4ce08EwSQdI2rItU8Woo/joIGqFR4+XHumWU72wtfm055gZsNue+j3mZrl9nCtF4NnZPnjnCMeJJ2EfMFeXzOXDLRLdJ6HqGArwkkr2G/W48EnMjH7G2xuN5ozFeoQ7cgqWu6hLR4DHRyiEoNK4flxnUEEcSQU+6ry09wWiagkrzNvJIi+fREG0WbjIEb3cua6FPPx6w2OMRf8Y5Xc3V+OsSSg8WgtURq0/ZuU5vF6Pqw/EqFA+foDOtMYWyZUadyHig0auFzpfygT9uvl2lH/WjR1X9XUO8jlhLIzJ22SdQBRPcEz1ZVnGiHW7yJZ1ucb1cthab7xbOFsHOQehFKNFROO8P9sjFH1B8tnFhwpcYi7yWXxDYQvupMswU+7TS5nWLLG/63D X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(50466002)(46102003)(77096005)(48376002)(50226001)(19580395003)(85426001)(5001770100001)(6806004)(189998001)(5003940100001)(5001960100002)(107886002)(50986999)(19580405001)(106466001)(47776003)(87936001)(92566002)(105606002)(36756003)(62966003)(104016003)(33646002)(2201001)(229853001)(77156002)(4001430100001)(2101003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB0872; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0872; 2:I+8zngKFTVqJT1fo1TRKsuwRWvNwXQ9JH5cVi/IA7n0QG/inaXmx7unE5YiilzII; 3:nTQ3m9+sqIrsSiqC4gjZBJXYLM8IPlRngcs7hIrNJqgsU9aa3ujFOy61RrKhEB3T93LGmt1pAUZZUpJuIoz7iGK5wyLYj8YKUrzYhh4Ket4si5kvnPbsL+ub7pKycopPakYCipOGux3HEDWzASr30yKxtPqIPoPidEphkdRjAoHok/w/zUJtKvz8k/8tpWDfSjfC0LsRUig9vSiq3gKayxHluY9r7TCMpbGUs+V8Dog=; 25:SZq3iUTTdKBIdMTnW/6a/Y7Rqsgd8L9QX7IFFJqd0tsMxfuJaCU8aZYRK7dihw/KmiEu/QEFzv84h/ea0RkRQoj3Gk6VLo/qxXZmaJZTyUEH0E58HO1UBUwgcW2g8bHaumXU2uUebviQBd45DQmbKSolZmM5hayJO3hlv8G5xyMLvJQUZqnCoUixN2Rcc2f/Qpjh2EQ7BORVLooPOs3CGdLqRMeW3RDlO4b68eXm5WFm7lsRQZVBnolEXKiD5OHfQHy/JQoxCnRYQ8l7sLaxEg==; 20:0HuQaa/h14rjHAN+WBTfilhgiFUAV9cycZWaC9OVY1+m1zbTpDbe6OAmqUVXdYzWKNzf1tHJFgquS4fkFYoDDmxsLjpMpWEjBUse41e92IC15wV6W9LZFkMTo7Fnrv4H1Omidh/TAczDKXmpUpwa5RYNpaLiU8IOSgd7z8P4kq9JZX/ZmfwuXi4Mbm0cO4jt/Siv4S2kykPGG8D5NVmcmreTQpkfwLJwg+P17kXpFUWGYWHcomf6FA1ogGtqK3ACnvokm0Hl3gNBTE66z2BTj+qGni9iX6aIjID0w4t/3tZJCLa5yeBA/ynBTvaLH6WDcElEZyYV6LKYfqMNXIPoEcBtHgAZAwNK/sRufhiJDZ4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0872; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY1PR0301MB0872; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB0872; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0872; 4:0Wj5b3EdzXrRH9J/O45CRduhaCH6NkiR/0IM8r68AE0KDufOwZnAh1W0p6vS0El7E7ZzI73bMi3OtGf5J9uD/vKbGRtHo4elCij5iNr4TelpojFMdU/t7pTeytMc7L92dSwI8TjPC+q0X1UHVffNF550+AQZS1jVJMw6FuIR8zvtrExhxkutmBnQfQvTFCoHernlvM135yjjlOgo4phQgbPfiua8AvCiXhPSEKbyrdhpLxtPSYHG2tZPARmiyfZWSgRCuYq7OQDR8pH1UdpFcKcNT8r2+78lKRkbRRud+Mk= X-Forefront-PRVS: 06339BAE63 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0872; 23:ybHP8OphcifFiyfOKbmsOvsyn01DvDFo5hrmZbGk6PDUwGpeeAI0ZAY2vw1jC/fgpocIt5pFu0/pMMWLhHUpVWQTncf5XJAvEPDOsnCmQT6eKbqnUjHgeh6VJRo6T2T0K3114od2FlOEpZKIA4eq/t689EOnO9pluk6hOvOWTXj02CaXVDGY5acvkdxjBzorZ9UtU7Kw0IW2Y325ISSAw68Abu+qLd6AORZHM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uW/YFcHwGsbFg2hyCLvl/y5RhCv/VTg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2015 09:43:47.2821 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0872 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150710_024423_474543_06F9D2D0 X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alison Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hrtimer based broadcast mode is used instead of periodic tick broadcast to provide high resolution clock in SMP. Signed-off-by: Alison Wang --- 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 +#include +#include +#include #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