From patchwork Fri Dec 5 09:07:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingchang Lu X-Patchwork-Id: 418053 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3A4761400E7 for ; Fri, 5 Dec 2014 21:00:49 +1100 (AEDT) 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 1Xwpei-0000Ca-KD; Fri, 05 Dec 2014 09:58:32 +0000 Received: from mail-bl2on0146.outbound.protection.outlook.com ([65.55.169.146] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xwpee-00008f-Mf for linux-arm-kernel@lists.infradead.org; Fri, 05 Dec 2014 09:58:29 +0000 Received: from DM2PR03CA0032.namprd03.prod.outlook.com (10.141.96.31) by CY1PR0301MB1242.namprd03.prod.outlook.com (25.161.212.152) with Microsoft SMTP Server (TLS) id 15.1.31.17; Fri, 5 Dec 2014 09:58:02 +0000 Received: from BN1AFFO11FD034.protection.gbl (2a01:111:f400:7c10::124) by DM2PR03CA0032.outlook.office365.com (2a01:111:e400:2428::31) with Microsoft SMTP Server (TLS) id 15.1.31.17 via Frontend Transport; Fri, 5 Dec 2014 09:58:02 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD034.mail.protection.outlook.com (10.58.52.158) with Microsoft SMTP Server (TLS) id 15.1.26.17 via Frontend Transport; Fri, 5 Dec 2014 09:58:01 +0000 Received: from rock.ap.freescale.net (rock.ap.freescale.net [10.193.20.106]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sB59vwsJ020245; Fri, 5 Dec 2014 02:57:59 -0700 From: Jingchang Lu To: Subject: [PATCH] arm: ls1021a: setup hrtimer based tick broadcast Date: Fri, 5 Dec 2014 17:07:29 +0800 Message-ID: <1417770449-3492-1-git-send-email-jingchang.lu@freescale.com> X-Mailer: git-send-email 1.8.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(89996001)(50466002)(84676001)(48376002)(110136001)(86362001)(31966008)(87936001)(92566001)(19580405001)(6806004)(19580395003)(33646002)(21056001)(99396003)(120916001)(97736003)(104016003)(4396001)(62966003)(77156002)(50226001)(50986999)(46102003)(106466001)(105606002)(68736005)(107046002)(20776003)(77096005)(47776003)(229853001)(36756003)(64706001)(2351001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1242; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1242; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(602002); SRVR:CY1PR0301MB1242; X-Forefront-PRVS: 04163EF38A Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=jingchang.lu@freescale.com; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1242; X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141205_015828_927885_7F00DCE0 X-CRM114-Status: UNSURE ( 5.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [65.55.169.146 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [65.55.169.146 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jingchang Lu X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org This adds setup of hrtimer based tick broadcast to utilize the hrtimer in SMP without other broadcast tick devices. Signed-off-by: Jingchang Lu --- arch/arm/mach-imx/mach-ls1021a.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-imx/mach-ls1021a.c b/arch/arm/mach-imx/mach-ls1021a.c index b89c858..4d074cf 100644 --- a/arch/arm/mach-imx/mach-ls1021a.c +++ b/arch/arm/mach-imx/mach-ls1021a.c @@ -7,6 +7,10 @@ * (at your option) any later version. */ +#include +#include +#include + #include #include "common.h" @@ -16,7 +20,15 @@ static const char * const ls1021a_dt_compat[] __initconst = { NULL, }; +static void __init ls1021a_init_time(void) +{ + of_clk_init(NULL); + clocksource_of_init(); + tick_setup_hrtimer_broadcast(); +} + DT_MACHINE_START(LS1021A, "Freescale LS1021A") .smp = smp_ops(ls1021a_smp_ops), + .init_time = ls1021a_init_time, .dt_compat = ls1021a_dt_compat, MACHINE_END