Received: by 10.223.176.46 with SMTP id f43csp2519467wra; Sun, 21 Jan 2018 22:07:43 -0800 (PST) X-Google-Smtp-Source: AH8x2274uBtlDENOGEPIqbDuExrdM1w4qd9ffvvDThg2ncW9b74RKAdIu63bWUSsZRWiRAqDIOUg X-Received: by 10.98.33.198 with SMTP id o67mr7510130pfj.0.1516601263310; Sun, 21 Jan 2018 22:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516601263; cv=none; d=google.com; s=arc-20160816; b=VXjTbkrF4vRHVmxKl27Isrm5RKTmKms/HlGdSRwghg8xFjCk5ua3VtoaZ94Pn0a/KC hEFmnTa/BxCfHlJJr7yChJVKHbADkRsIq1lZphc4YVUZpdRXdGEBAat1ImRh9fwEUH+B 5MXL+K4a6pqVLHLPheUjfrOTN2ixDePJJgfdqV43m6rPLcXKgQnxFDoO/fCjeO0HIC7c w11MkRQWQ0Gl13qQeb33sSnceo8Z8dA6yNsv2lAZtxPkF1DAhM51YRC4ttmI7I0nltAn deWcMnkb/GUtDNqLgNKT7e0qbI0TAjKuJVXxF0yx3ImkDghz//IyyWsmO6VH9q2dkECa qa1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=00v+fC7+SWtp/IVnYb4npT+uAPkkZxdvXYRXzG/BeOw=; b=HKvV/otHNNfweJ8ByRDpPuPTwmII5BB8qGo7bZ/BuRZiOuFRkdbTrgzzNhdpDodg9I 5rGc+TGm0ZvBtV0/Ft9WUOunjZ++0pCAf4WH3asBcpwcZuyEdCzf8XW0IVwwbKoSyGXC AUTf46sbADrLYGqtnZTRWQQsYTqPbdZc+LpnjT97lB8/EWZQg1x+W1vOj2+0cDnQjt05 FmOqgY7ionwpVey/0AkNRy/4pfXUj2ffFPYFDB65/mKCqatKzPCL4TACle4r5U/g8gi7 4b0ciwiCXfrzHXzoAFSmw6cgLc+hxT0raz4ZQi2sDvltjLDwtRry6KF8917+UUDp/38E GbwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si3109942pld.110.2018.01.21.22.07.18; Sun, 21 Jan 2018 22:07:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751086AbeAVGGp (ORCPT + 99 others); Mon, 22 Jan 2018 01:06:45 -0500 Received: from goliath.siemens.de ([192.35.17.28]:37148 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbeAVGGo (ORCPT ); Mon, 22 Jan 2018 01:06:44 -0500 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 Cc: Thomas Gleixner , Jailhouse , Linux Kernel Mailing List 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-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(); } }