Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2062796pxb; Sat, 23 Jan 2021 15:40:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyltATZoTejvfAHuGolyJLs9wYCFKL09+9tO/Bth6nc/s/Yn0aTeATlsLISa77ChO/2v2vo X-Received: by 2002:a17:906:191b:: with SMTP id a27mr2042243eje.472.1611445250839; Sat, 23 Jan 2021 15:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611445250; cv=none; d=google.com; s=arc-20160816; b=cVcJAwYa69urtk6jTMee5AlFkJ7uHMQrlVJchPsr033uEksUcOrZLLQc9ua2XM4GZT um7+pekaITxJ/CqTBCCTXDpikETdR/G7v98sxX/H2kjqtoiMl1PMffsxB2RoqnKGoLQW z0mtN91IB4Rc/yytBoORxvgokupvl9JVwwqbfK1cLKw6TUs8APEh7XRRBE79T5OekXJn 8ApyxAjyyuUBdmPaybHdUC61NGgywKjlhwysMNwz6tEKQW/toO6IgelSgmrd3VDkXPxv ONaWzDFsrvJAw+QOnePxw7wv+vmWUfkZD/gZ0Z+1KVPI4bIGhn9hq4zjhDwR8kPajG/i bO6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+rgXrO0opoUiSwQw0rrTGwtEM//L9Mh+tngMNeVOZe8=; b=wfXWhGI0xXAHUL2tA9U+W1P/JK2oagn+rxIwbtvsnBvnpMnL5aV8tzgVomW57vr1oi wBdDcS/CsNct4ZQ7R+g2wskAGqE8A8MXXGACYBoQwS54L4yttx5+PARPwek7uVw5Wy4r 56afx6mfGIFjISjh9hgjtXtWfgIRJ2KVbMrPoPqqwf5SppMUOqGQQ7FxcZAcBNP1Nuaf xrhMmA0xTuRFh/gCDCOoHZ+nPKVCl/e2hFZexbEFQyV4C8WTSbuWETYGFB/tHQugCY5l 4h+bOTGLtqJUGPJ+u3OZDiEd1j8Oo2gbN1WfhSKgpTWZfGb9ZU3t9n8bTs27DGGoDoJl lZGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si4458999ejv.701.2021.01.23.15.40.27; Sat, 23 Jan 2021 15:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbhAWXit (ORCPT + 99 others); Sat, 23 Jan 2021 18:38:49 -0500 Received: from foss.arm.com ([217.140.110.172]:34270 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbhAWXir (ORCPT ); Sat, 23 Jan 2021 18:38:47 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F7F41570; Sat, 23 Jan 2021 15:38:02 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DBA913F719; Sat, 23 Jan 2021 15:38:00 -0800 (PST) From: Qais Yousef To: Petr Mladek , Sergey Senozhatsky , Thomas Gleixner Cc: Steven Rostedt , John Ogness , "Peter Zijlstra (Intel)" , linux-kernel@vger.kernel.org, Qais Yousef Subject: [PATCH 2/2] hrtimer: Use pr_warn_deferred_once() in hrtimer_interrupt() Date: Sat, 23 Jan 2021 23:37:41 +0000 Message-Id: <20210123233741.3614408-3-qais.yousef@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210123233741.3614408-1-qais.yousef@arm.com> References: <20210123233741.3614408-1-qais.yousef@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org printk is not allowed in this context and causes a BUG: Invalid wait context. Signed-off-by: Qais Yousef --- kernel/time/hrtimer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 743c852e10f2..2d9b7cf1d5e2 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1700,7 +1700,8 @@ void hrtimer_interrupt(struct clock_event_device *dev) else expires_next = ktime_add(now, delta); tick_program_event(expires_next, 1); - pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta)); + pr_warn_deferred_once("hrtimer: interrupt took %llu ns\n", + ktime_to_ns(delta)); } /* called with interrupts disabled */ -- 2.25.1