Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp897320imm; Thu, 31 May 2018 11:18:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLP4a5VQ15ji7fsQB8TgHv/foCmVrV99cITZPDbvn21cGNY5QsI+c+jWQuCVRSvwOo0Nebp X-Received: by 2002:a17:902:b28c:: with SMTP id u12-v6mr8049216plr.68.1527790705605; Thu, 31 May 2018 11:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527790705; cv=none; d=google.com; s=arc-20160816; b=wN7KQ2IL1jTQktqPxQOQE9lEJFjCRRjLYNjibF0KLqA7CPO6PNIjuHCrG2C0carGGr FXrRLMXkFTEISE85hx4+oF5oLNZMigN2Wf5z/9h+OfxRtZd8BkBmQs+54NucFAlXisNg R5HqnVJqHIfAr2mdFnm2f/njA1h1Fr0G7o+2ziIeRKOT3W1BISjl37+HzYzw48A9FhB3 pjKhKDI3V4ahpAb0aSRn+vdhha8FINjR8Z2hxz9/FKItJgd86WNet6sS5YGGh4e2KU4s IW4Wk02VEwqrwO6y+Qhvk+pemS25nir957BwB13fblI2Oi5zhxDmXWewPK7rt+9Olej1 tw4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=YucruSJ+o/EsH/r9ph+8J8AqO3gpMgUVLDwoLVR/9yo=; b=MNuBV1XR+bbvskZ8IFVte+pagqcqkHr0LTh5jI1s8hIDntxaaxOqFZZNPzv52oUafF qB3WjU0OuKPxCPlTxSFjI/wwEjkgD9AHgyWvJiW6gBRlHCqEN2lcF9YWDR9FCzq6F1cz IzWMSUyJYRIkHaWtbDuoThNlgnwCj8rkhKsXZXAqdSygG6PK+skvsUy9HRPoASLorTlt 69WP70nkLWgLsmQdzlkiKMMid3UneEFqNtRpKiCHUX8Yt7fGK1CSlGZNKOLTOhXc/beZ AHG+nI9mSGuYIXdaJ5RP/QPE3nPBPCYz6doKylkCJFkm21hjfZevcu25xQPbiEPAC97Z ppxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HnmzwBFP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25-v6si10290713pfi.177.2018.05.31.11.18.00; Thu, 31 May 2018 11:18:25 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HnmzwBFP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755908AbeEaSPt (ORCPT + 99 others); Thu, 31 May 2018 14:15:49 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:45539 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755824AbeEaSPo (ORCPT ); Thu, 31 May 2018 14:15:44 -0400 Received: by mail-qt0-f195.google.com with SMTP id i18-v6so18328208qtp.12 for ; Thu, 31 May 2018 11:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YucruSJ+o/EsH/r9ph+8J8AqO3gpMgUVLDwoLVR/9yo=; b=HnmzwBFP4WUgfPNptXPhbnTJJCa6D6eOUa0kVleyfImmKYQ3syG4wfbUsSxuQutq5l n64etLDq5kNFOQpGUI9lfiS3yGYfQIBeH/KMKxnLd0ssfdIOVS9UnbcQ2ITmKRiQNeCt CYJ6Oi+X02R9a/2VD8/wiEyfDIW6g03U94CnhbLkwUqfWyXxsseBL9fFQRefwC7UehGB GilLMeeYVuFaKg57NafwP8sUoZowUG5AWweXZZIlpqMWZyo8WLPOzFUw4wlVy6jI+w2z ajjpL/kKGJdNnoJIueQEKTKMehsZfTuaHeCrbBO9sG3geyrA6uKYsNJzaAjUvhYOqzny CJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YucruSJ+o/EsH/r9ph+8J8AqO3gpMgUVLDwoLVR/9yo=; b=ZtHsE4o2B6FZrzEJOS54boBDfkh0UnX1V3QCdIUf24M/FJEzOsXlJOgAKvVyKREhG+ 87MTp0nKu5fAhpIHWci2v2F9ZxoYdw3pB427WHLYHOBS1m/7LRKxqw5VZ7aByR8hJREK zZK0XS41g2uYjvDbn2kBQDJxGSs2y41CN8A7LGxBvL4oLBusotxgmrlo3qrKPFgI7wgQ JwA2CjN7qNsnawSoP+Qybsy75pda0GT1gAHWzFo5WIcFwH5xwpUt679qK7HDrzdVK5Ci WmumYAoZK838nLnapr7LNIOK2iap+Ix47w8BAhlrmwW8ZQ1dmnpDmhX7p/N0rfFTwnRw wDEA== X-Gm-Message-State: APt69E1MiFFfjX0dxiWAN5fiPM9TDPN8ffmyVGvN/pWATx8X/KywRzvZ l2ESD2c3XOVoE1Qc9+IxjGKmaoVWlQw7KtcI/Xk= X-Received: by 2002:a0c:ae2f:: with SMTP id y44-v6mr7631806qvc.157.1527790543474; Thu, 31 May 2018 11:15:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9896:0:0:0:0:0 with HTTP; Thu, 31 May 2018 11:15:43 -0700 (PDT) In-Reply-To: References: <1527672059-6225-1-git-send-email-feng.tang@intel.com> From: Andy Shevchenko Date: Thu, 31 May 2018 21:15:43 +0300 Message-ID: Subject: Re: [RFC 1/2] printk: Enable platform to provide a early boot clock To: Randy Dunlap Cc: Feng Tang , Petr Mladek , Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" , Alan Cox , Peter Zijlstra , Linux Kernel Mailing List , alek.du@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 8:22 PM, Randy Dunlap wrote: > On 05/31/2018 12:18 AM, Andy Shevchenko wrote: >> On Wed, May 30, 2018 at 12:20 PM, Feng Tang wrote: >>> +static u64 printk_clock(void) >>> +{ >>> + /* If platform provides early boot printk clock, then use it */ >>> + if (unlikely(system_state == SYSTEM_BOOTING && boot_printk_clock_fn)) >>> + return boot_printk_clock_fn(); >>> + else >>> + return local_clock(); >> >> 'else' is redundant. > > So it is. Is this a style comment? > This shouldn't matter to a smart compiler, should it? In this particular case it doesn't matter, in more complex cases this will increase an indentation level which becomes a hardly readable code. >>> +} -- With Best Regards, Andy Shevchenko