From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3DFEC19759 for ; Thu, 1 Aug 2019 19:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9481D20679 for ; Thu, 1 Aug 2019 19:00:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="M5uj79ES" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387830AbfHATAf (ORCPT ); Thu, 1 Aug 2019 15:00:35 -0400 Received: from terminus.zytor.com ([198.137.202.136]:42943 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733198AbfHATAf (ORCPT ); Thu, 1 Aug 2019 15:00:35 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x71J0ODa068707 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 1 Aug 2019 12:00:24 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x71J0ODa068707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564686025; bh=udgEN53H7OAWC7anPT/Qn6sug4QlLrp6PWXnC1DY710=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=M5uj79ESmXvHhArn073JqZgb5zcnPzaEn6CZCTT73OWhhq+M4o0FA07Dxd1OOWqw7 mHRYVlfjmprcnvDB0aVhyPwKgunzDzec/fRCGAadU2PYQeTLUeg+hoj/mOM9rHbwnk Ks+59kw/JzgiIo0WiZXwb8eKsi9hKe+zJ1fkoQnsXF60n4wsq75wfxRfsmabaLHSNT f3qfZNuq/Ox2eS+V6Mbi/CGaOmyAW6His8Brnh5fuUdbSkaz8feF+hhSyxd9cHMkEJ W5PGYOhGzQpTNNiAiuahjwgB7WtMHtFsQZkz5QUGZQjeSiez4ouOowzTNxkYbUWaSY FX6QQCBHp7qcA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x71J0Okw068704; Thu, 1 Aug 2019 12:00:24 -0700 Date: Thu, 1 Aug 2019 12:00:24 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sebastian Andrzej Siewior Message-ID: Cc: linux-kernel@vger.kernel.org, bigeasy@linutronix.de, mingo@kernel.org, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de Reply-To: mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, bigeasy@linutronix.de, peterz@infradead.org In-Reply-To: <20190726185753.262895510@linutronix.de> References: <20190726185753.262895510@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] watchdog: Mark watchdog_hrtimer to expire in hard interrupt context Git-Commit-ID: d2ab4cf4943576fb060b8a69341d9e0c2a952ba7 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d2ab4cf4943576fb060b8a69341d9e0c2a952ba7 Gitweb: https://git.kernel.org/tip/d2ab4cf4943576fb060b8a69341d9e0c2a952ba7 Author: Sebastian Andrzej Siewior AuthorDate: Fri, 26 Jul 2019 20:30:54 +0200 Committer: Thomas Gleixner CommitDate: Thu, 1 Aug 2019 20:51:20 +0200 watchdog: Mark watchdog_hrtimer to expire in hard interrupt context The watchdog hrtimer must expire in hard interrupt context even on PREEMPT_RT=y kernels as otherwise the hard/softlockup detection logic would not work. No functional change. [ tglx: Split out from larger combo patch. Added changelog ] Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20190726185753.262895510@linutronix.de --- kernel/watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 7f9e7b9306fe..f41334ef0971 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -490,10 +490,10 @@ static void watchdog_enable(unsigned int cpu) * Start the timer first to prevent the NMI watchdog triggering * before the timer has a chance to fire. */ - hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); + hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); hrtimer->function = watchdog_timer_fn; hrtimer_start(hrtimer, ns_to_ktime(sample_period), - HRTIMER_MODE_REL_PINNED); + HRTIMER_MODE_REL_PINNED_HARD); /* Initialize timestamp */ __touch_watchdog();