From patchwork Fri Jul 17 09:11:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Wang X-Patchwork-Id: 6814481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2A3969F358 for ; Fri, 17 Jul 2015 09:19:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 60AD3205EE for ; Fri, 17 Jul 2015 09:19:53 +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 8A46020604 for ; Fri, 17 Jul 2015 09:19:52 +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 1ZG1lW-0002VA-57; Fri, 17 Jul 2015 09:17:10 +0000 Received: from mail-bl2on0738.outbound.protection.outlook.com ([2a01:111:f400:fc09::738] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZG1lT-0002Oq-EI for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2015 09:17:08 +0000 Received: from DM2PR03CA0024.namprd03.prod.outlook.com (10.141.96.23) by BN3PR0301MB0868.namprd03.prod.outlook.com (10.160.155.142) with Microsoft SMTP Server (TLS) id 15.1.213.14; Fri, 17 Jul 2015 09:16:45 +0000 Received: from BL2FFO11FD007.protection.gbl (2a01:111:f400:7c09::182) by DM2PR03CA0024.outlook.office365.com (2a01:111:e400:2428::23) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Fri, 17 Jul 2015 09:16:44 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD007.mail.protection.outlook.com (10.173.161.3) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Fri, 17 Jul 2015 09:16:44 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t6H9Ge3s003861; Fri, 17 Jul 2015 02:16:40 -0700 From: Alison Wang To: , , Subject: [PATCH] arm: kernel: utilize hrtimer based broadcast Date: Fri, 17 Jul 2015 17:11:52 +0800 Message-ID: <1437124312-44700-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; BL2FFO11FD007; 1:59jVqZAKVqV20E6M9C47V6Ydpy5OrAsnIrpJAuD1ZO9LWdCYgwbtfjUL7lJO1ESL54u9g7V0lMJ43VEEmkU/G+tMeOk0EkpWikspXE02AA9wdoqZvHm3RQyPV3itkZMt7YtKHX0R6IDg7AX9wvQRQYbq1PdOC9IOz3iWpmaWdNnRXosZv5qIOo0HoVHxvhoB2dmHNfKH7KlEDRpJCsAWe0vb6usmlwFHzVd2TvyH8yPDOBjEfTvcurL1tDCrEUTCEliHG07+t07MCwz5oA+RZQEWdSmtP61UQJ/Os4HF3Ovg6MtoWwYP1IFtorNuPCC9kVmmtHISAejS7xqftEAEQ5Tpqm9Hj7emU8kolwDEVg+VY8hJBMGN13MaJWXm86hduREaRmaG7bxrBhDjvh1su/qU+hMDyRajPWw3LXqKQvRiQobKeZsyTrrhvHXTx/o4 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(92566002)(104016003)(87936001)(105606002)(5001960100002)(5003940100001)(107886002)(189998001)(5001770100001)(85426001)(50466002)(33646002)(19580405001)(48376002)(46102003)(50226001)(36756003)(106466001)(77096005)(19580395003)(50986999)(47776003)(6806004)(2201001)(229853001)(77156002)(42262002)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB0868; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0868; 2:oj51Mu9chUmSPThxdhvKyL4K9KAXwIfYLGkpBnroZUhHGce+Jq7p4nuF4kckWv0F; 3:Z0+TImZB/tWPckG7Fpho6IGEe+4dZRu6O4o0OaAmbDU3tuUw+xXEgJyHyngj4ge8NW6wfa/d6VgiTvgew2ey1Ktac6nxKHV18t4Q1ZjIPtpf2h85Jf30huMA9RQynx0LEYZkucB3lPqXIkAsBe+YxtyrbIEUtg2obC5+NuMy0lx5NYKRnZMTo9aVywL92XN7RBVM4QtoC9aMnY58Uoc48TLYzrSLxrvpBxOeDjmGD2U=; 25:KG61A7gbqs+vMWOVVN9atFIoiTv1psEWYV9DrN2PmvQ3CWSon6CXz+zo7yLHSqV1+tkY+fY7b7E4/1l9WXXz1BzLqR2W25hzo5lAf/sJ+sT27sMGbW4bGn18jvq89r0HHwY/1dRgmMgdQvaz4FaZ7Rq8XJxmrj6nUw5I8b7hkPILgmqowY+GJP6lVQgluRxwVGA10+BysfLNwUNgKoFLVZJArdkYu1cEt3yxSvAD8ZVlugf4e6ibcu0Ausl38E2LqVuXTt2laIXnWauxNEZ6bw==; 20:h5mzXsIF4wz5gnf/ZRfgUGqgw+WVXhhk8XvMLoRg2r05uiQ/IcpgUaDJ9as/Zz2c4THPorVzH9P+aTMfMJfveL/Q0QcIg39VUy1URQDQ47IDpZrF6NS+mcYbxAdIlSJvCUtX8fzE/hdx+zLMRSJq9MU1Iz0tgObIAqCGxHWTIPvyRPWlVZA+w+EhvC3lZfLb7xImcHrwe+up9TCHnxFR4rwces6QTFVXW4QNtxOjks/nq+j+V22F2Qocqsphwv8bDXkfk7/1mcdj2F8XaeHnUFL1O/qVNgOb/EJsVuMUg5bxeKMAXoJjTFi0cBZvccGKcEJ8IUG5+m19NVtveYT0bpBI80Uo3qNa2o1PeMoHFMY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB0868; BN3PR0301MB0868: X-MS-Exchange-Organization-RulesExecuted 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:BN3PR0301MB0868; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB0868; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0868; 4:A0OA+uag7r+aDXrvvbD/JXh9Hl46EUcJlQ6OIZ9oS+3MXTPJBUMcH8O5DGd8NKb10M8X/4Zv4l8XTlyM6AfjP3Q04o6cN+9wQ0NjmNFgycym37OoAFYBhXT0WyU7EWR/AqlFNh6aUWW+osN8L9ZBVlDpxh4UMTqUOlVx1r0CZQm0HbY7KJcJ5wj46lDMoo0OGeUTYZvIjVHjNFgG25+3fWiigvncLO6BTd0nFJOpQ+8PRKIyt5oL6sTZQ0S6mRIKVd4AFhcZ50TjRPeKp+1kb8biqMuM4ualEDMEL0ASvdA= X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0868; 23:dZd4IjN+cnN5r0/ILpLsiE56RV8gPXot+/YeMDHYjBdLjsB9aZ40bjGOXNHP5+6mjrb2SYNaLxOSRiQ4JotReDSq6DJ5VAP/ylmOmC6sueuYsxJ2VdqMKAPGNjUAKWAl3iYGcd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COT9ZG14WPbwDvdhSMs6gka9Iw=; 20:pug9MKTqODxAdgIg5FuPFD0/ndVdfV+f0NiAgrYGBvVwxLgL2pDflGHeyhYT33sFoCdfNmkmle32MA8m7wc+jw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2015 09:16:44.4672 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB0868 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150717_021707_634712_1EAF6543 X-CRM114-Status: GOOD ( 18.03 ) 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=-5.4 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 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 Acked-by: Mark Rutland --- 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 +#include #include #include #include @@ -121,5 +122,7 @@ void __init time_init(void) of_clk_init(NULL); #endif clocksource_of_init(); + + tick_setup_hrtimer_broadcast(); } }