Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4065555pxb; Mon, 30 Aug 2021 18:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyU7N+UhLVAalU+dX+JS4WpzqeH1YyLIjG7oYB0A6SEz0t3ZmbkRA26RFx7munAkbdaGR7 X-Received: by 2002:a92:d3c1:: with SMTP id c1mr18298962ilh.194.1630371956167; Mon, 30 Aug 2021 18:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630371956; cv=none; d=google.com; s=arc-20160816; b=QXBQdjA7SNnoPu3F0xpwgxRLKMTz9yqDNtYl2OrUAj39jDkBvsnQUzbzHuw0CzYG1D dENYZD8IBN3f1dyVHmt05PuqTIpIo8Ew8dHIApTuiZmazPztbzhA5FfPW1c9iCcopbU0 9URm06MWTNnanrjQtVmAE6W5kcs2lOJ3i9IqsqViaEcD35gtOQ76JgvJPXSAXuVrhfFO 2MF2bpq7mPhQiqQmrUWszVL7hY7+Li5TLfgaMBNRD6oj6vk/uuOoYT+csTpsqN2jHZco acr87ifNst2mF5Ypx8kx3PtfB46xzc9aub3etuB65WU6XelHeFG/jfxgjUHLh6wls3dO T7hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=N9oXdiyKyh+64MjmkQedbrZJBmQwnxKayFwZGo+V8Ik=; b=GVsc+6/8OZvVzZAFIjsMloAB7pCfxGqEa/JqKWwwIQgsxt0o8ig0vub+nC3XOXQsv3 8OMUDWyQuaOD6GMN11DYKikbGpn8hLFeD83KjEEwFwYPXGU/CqTfx4HIpHwXBbC5TkK1 sM+P9VUXlKPUk0S/klV36ArJ4B5llG2OhDafK3X20C/BKSQcFK8bmNUiA5uKQK4pW66I S3/Kqn7QDo0HisibMzAWfsoe+uQeKALxBV+LaarjVJqkO5YNCDZ007l4m8wZIexj9auT wc7rfWZ+/4tIleCVmb0y2xaGRRQt1FtwjQV5h3SUCdEET8K8XzAGhmlnyUR+j+Z5I40a q2nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gW+g6sw7; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si19868834ilu.84.2021.08.30.18.05.42; Mon, 30 Aug 2021 18:05:56 -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=@chromium.org header.s=google header.b=gW+g6sw7; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239147AbhHaBFs (ORCPT + 99 others); Mon, 30 Aug 2021 21:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbhHaBFs (ORCPT ); Mon, 30 Aug 2021 21:05:48 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD82FC061575 for ; Mon, 30 Aug 2021 18:04:53 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id x4so15181682pgh.1 for ; Mon, 30 Aug 2021 18:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=N9oXdiyKyh+64MjmkQedbrZJBmQwnxKayFwZGo+V8Ik=; b=gW+g6sw7G9SRkIO4ftZiqwMcqR/F0nK+204T/aIFFwdYI3RrUEN4x0Ur8tQ5+GTkdt rvJhRPluk1SvZjJR+tj3T5ryphD7yNZ7pcIKH3U8Yc+6ASXwNTK+oOFPLH7baNTfWdZb oLJPd+q8jWZOCdjWjHShIMMYXULqfITsb4pRQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=N9oXdiyKyh+64MjmkQedbrZJBmQwnxKayFwZGo+V8Ik=; b=L5wVQmhvsYtUb0deDkHiHvhUfK5d1MCkRCS84W8FS0ToPY7PYK9KVhALaF3iXfeVDy lCQf99tzpMrmtd+Zw7ZFgF90OPqCGXzh26GanAGvMQCUChGHyStV6dlrPA0oO1bI3Dmr Fl1Fe3/SyIo0QFlITDrbGZX8HnpUTLMT44TTwtZQnGqSw2mhInKmFTNRx3tnl7oq2NvN Npd0//SV8/Hok7WrrtMB4+h1Nkz8QKp+1b+vO5tQu2hV9WhhrStWkFzo2GPsMtcmArl1 6RxrTVvzeWbOlHRRD2bKAYPRKjMCd/QckhZqmGVOQvDNDmXdlhvC75M6eMu/V5R4VKdP tR2A== X-Gm-Message-State: AOAM532vK3lhUCsVMUda8I0HXtbloOKQz23Qp1jrCCQ4ZrSbPBrvcww7 ++TDilKjL6df6Y+kFjR9g9Ux1Q== X-Received: by 2002:aa7:8888:0:b0:3ff:1d90:1864 with SMTP id z8-20020aa78888000000b003ff1d901864mr8718183pfe.54.1630371893448; Mon, 30 Aug 2021 18:04:53 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:6d52:87b8:b55b:8800]) by smtp.gmail.com with ESMTPSA id o2sm18511425pgu.76.2021.08.30.18.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 18:04:53 -0700 (PDT) Date: Tue, 31 Aug 2021 10:04:48 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v1 05/10] printk: call boot_delay_msec() in printk_delay() Message-ID: References: <20210803131301.5588-1-john.ogness@linutronix.de> <20210803131301.5588-6-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803131301.5588-6-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (21/08/03 15:18), John Ogness wrote: > boot_delay_msec() is always called immediately before printk_delay() > so just call it from within printk_delay(). [..] Interesting. Apparently boot_delay_msec() does not do anything if suppress_message_printing(level). I wonder if we want a similar thing for printk_delay() as well. Otherwise we have some imbalance in behaviour. IOW, > @@ -1222,10 +1222,8 @@ static void boot_delay_msec(int level) > unsigned long long k; > unsigned long timeout; > >- if ((boot_delay == 0 || system_state >= SYSTEM_RUNNING) >- || suppress_message_printing(level)) { >+ if (boot_delay == 0 || system_state >= SYSTEM_RUNNING) > return; >- } > > k = (unsigned long long)loops_per_msec * boot_delay; [..] > +static inline void printk_delay(int level) > { + if (suppress_message_printing(level)) + return; > + boot_delay_msec(level); > + > if (unlikely(printk_delay_msec)) { > int m = printk_delay_msec; >