From patchwork Mon Jan 22 06:06:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 10177357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCA8060353 for ; Mon, 22 Jan 2018 06:06:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B014826E1A for ; Mon, 22 Jan 2018 06:06:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A449C27968; Mon, 22 Jan 2018 06:06:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED,RCVD_IN_SBL autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DBBED26E1A for ; Mon, 22 Jan 2018 06:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZXQ3uaYLaVtep/PWIZshU65vgfEkZ+xfojGCQnyk2Fk=; b=mppPtj/1pqlT2f 7eQMkWj3w0O+cofrBnA9kgztKxw4/8PIlIkqwqdyA/3pucsF2yhIkO7D7ZwC/kMGHnDOtHara/Zfh 7ZZT5/NVmg7lU+1wjFZFt9gLXUVMjqAX1k+e+W80cfpn2AzTiPTAZrDi12QPdoK5nTW3GmsgMsx0M T+glC/IvC6YoPU9Qi9BAASSADATdtTJhG581bJU7bCP+Txht4HqSWxsQ/6j09yTKout3r5CfTxJzq W9z1JYUufc9PDzmNK2W2CPBehy/d0WUkMI5n70/5Ia0ec+1xo7zwoZ5leyDoDypUnGA0N/j94VZ0W OWWGB/smbYmTmwL6ceLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1edVFk-00014u-CO; Mon, 22 Jan 2018 06:06:44 +0000 Received: from goliath.siemens.de ([192.35.17.28]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1edVFg-0000yq-Qq for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2018 06:06:42 +0000 Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w0M66AJm028710 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Jan 2018 07:06:10 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.15.170]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w0M668WU014776; Mon, 22 Jan 2018 07:06:08 +0100 To: Russell King , linux-arm-kernel From: Jan Kiszka Subject: [PATCH] arm: Initialize hrtimer-based broadcast clockevent Message-ID: <86a7e675-11bd-3b8b-22a0-8f440db96293@siemens.com> Date: Mon, 22 Jan 2018 07:06:07 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jailhouse , Thomas Gleixner , Linux Kernel Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Analogously to 9358d755bd5c, this registers a broadcast clockevent in case no hardware broadcast timer is available and the per-CPU timers can be stopped in deep power states. Partitions of the Jailhouse hypervisor fall in this category. Registering the workaround timer allows to enter high-resolution mode in that case. Signed-off-by: Jan Kiszka --- 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 629f8e9981f1..0a45d861ef8e 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 timer_probe(); + + tick_setup_hrtimer_broadcast(); } }