Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5413481pxv; Wed, 7 Jul 2021 03:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdB9QRR1q24QPbFTfVAqBgzZ53v7sHxr4fdij+afXiPH4HZTTKF/xAn7ikAmCNsgKYQBqo X-Received: by 2002:a17:906:32d8:: with SMTP id k24mr23364166ejk.422.1625652848710; Wed, 07 Jul 2021 03:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625652848; cv=none; d=google.com; s=arc-20160816; b=i5n5Xnoj4KCs/cB3REwgU9eF6pligBim4TnX4PRU8ee5yy62b48ZfcJU0uE82weCnW II9i4wc7XgMxPrjDc3t92N5njLVVAfNnzp+7mBF9xPhSVC8HNALRFC09oDd6wtsey4N7 IoqhJw9fvsy6vIra4Z8JvNCMjb4FNNtGa+ZpQZKlaElE4hDQHYB0/Jp0i5nglqFezZ9R +B9rO/bmICi6W1ulPZmE0fE5+GKgXVC4M925lE9Ngj8j5B7PsTXyCd1t0HcD7BTz2EcH S0vV9VWex5X8Q15M6Cmf7kTbKFd6iOiiV0ENlAlF7AtCuDkApVBGoyzIQi0+HHXYWMwG y+Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=e3T0vy5Ozkp7gou1cPpGjvAJK9fzQXPbfdcBROxPKxA=; b=A39e02CSsFlnFVbSGjoxmmFj2Dc5xyk4NYvoOp7HIi6vQtcFV1pcfJWssQ9Lg8OZs8 Gr7gD+qGUUT7doe1mPj+N64CC0bCtU1KJ6CLpTuZujeCKZEheddp5+Vkv9f7AVOCqyZw oi8wegexUjQLJTl3QmAEgyH11Yn+6XtKp5sBBAKD20xBI5n2eHIefqRgOyS1x8JjhhOr Lo4Da+y1K341/+7RS6X77XVVpF29wwJKvrweLpwrkffJPw2+q33RXoiAsiPioQiLzyHp N4jUpia2kIJ7CInDXvIV0clLFgxcP9Lfo5rWvLalDsWEdqY0FkmT6hsScxyaaVcJnSCU WeZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xXYMVZfG; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si16971027edx.409.2021.07.07.03.13.45; Wed, 07 Jul 2021 03:14:08 -0700 (PDT) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xXYMVZfG; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbhGGKPe (ORCPT + 99 others); Wed, 7 Jul 2021 06:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbhGGKPe (ORCPT ); Wed, 7 Jul 2021 06:15:34 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19788C061574 for ; Wed, 7 Jul 2021 03:12:54 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1625652767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=e3T0vy5Ozkp7gou1cPpGjvAJK9fzQXPbfdcBROxPKxA=; b=xXYMVZfGgYYm7sqnyWibSfkPVgm1DANzxwcOLpugxB/GY+Q1GABWzyviykSFP672W2BYmU s7xPaWJAmy9uSE3weKTJgEm0VVoxo7JdMOkvpFr3c56lTWiiA6PcjZYXJmiO8WGMhrk3+M guaroZJKOLY/wsJ2m95h2wto2ngBDhL1upmaXpbZWkJ6LmuW+ECAzNwyLNvKNBgOMv0IK4 Ee6hcr0oe4OAvnMb6dhLK2/wjZoGqzMqwiHpVt0Ef0APOuqZ92vuV9RFSrJfNXmpJ1ZXWJ AJTjfQEaOXSdvXQPC7nHFlKTNXLsoFOZfg+RCwSarBh/W/S3uZTTeThUkPCzMw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1625652767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=e3T0vy5Ozkp7gou1cPpGjvAJK9fzQXPbfdcBROxPKxA=; b=h8ucLeinHi6MttnAUyjFlvOqy7IfC6AM3/dvSrT6twTqmOiJHgwBx6VfKwuRlqAUyXK7cb dWg3jY5nk8YCpyDg== To: Ani Sinha , linux-kernel@vger.kernel.org Cc: anirban.sinha@nokia.com, Ani Sinha , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Subject: Re: [PATCH v1] Print a log when the sched clock is marked unstable In-Reply-To: <20210627064911.2179786-1-ani@anisinha.ca> References: <20210627064911.2179786-1-ani@anisinha.ca> Date: Wed, 07 Jul 2021 12:12:46 +0200 Message-ID: <8735sqqvoh.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ani, On Sun, Jun 27 2021 at 12:19, Ani Sinha wrote: I asked you to read Documentation/process carefully and I told you: Also your subject line want's a proper prefix. Your patch is missing a prefix again. Hint: git log kernel/sched/clock.c > In other parts of the kernel when the sched clock transitions from > stable to unstable and vice versa, a kernel info log is printed. When > the sched clock is marked explicitly as unstable, we should print an > information log as well. This patch addresses this. It is useful in git grep 'This patch' Documentation/process/ Also please avoid the 'we' wording. 'We should print' does not make sense if you really think about it. > cases where for example, we want to understand why a certain feature > like NOHZ, which depends on a stable sched clock, is not available. > > Signed-off-by: Ani Sinha > --- > kernel/sched/clock.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > See also thread > https://lkml.org/lkml/2021/6/20/32 > > diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c > index c2b2859ddd82..5a403b2c9b3f 100644 > --- a/kernel/sched/clock.c > +++ b/kernel/sched/clock.c > @@ -192,8 +192,10 @@ void clear_sched_clock_stable(void) > > smp_mb(); /* matches sched_clock_init_late() */ > > - if (static_key_count(&sched_clock_running.key) == 2) > + if (static_key_count(&sched_clock_running.key) == 2) { > + pr_info("sched_clock: Marking unstable.\n"); > __clear_sched_clock_stable(); Why isn't that in __clear_sched_clock_stable() ? Thanks, tglx