From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932449AbdKQMkZ (ORCPT ); Fri, 17 Nov 2017 07:40:25 -0500 Received: from mail-ua0-f172.google.com ([209.85.217.172]:42616 "EHLO mail-ua0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932077AbdKQMkP (ORCPT ); Fri, 17 Nov 2017 07:40:15 -0500 X-Google-Smtp-Source: AGs4zMb9a8iZxhkKqA7eYlCdWKoMROf3PZlkmM27b5JzHjhnm95R+yI16dVX7ph7gCtrv4bDWd+hJTNjctBgqxTR4vY= MIME-Version: 1.0 In-Reply-To: References: <7278eca76456b412e02d9baa5dc164e83199cbab.1510118606.git.green.hu@gmail.com> From: Greentime Hu Date: Fri, 17 Nov 2017 20:39:33 +0800 Message-ID: Subject: Re: [PATCH 26/31] nds32: Build infrastructure To: Arnd Bergmann Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-10 16:26 GMT+08:00 Greentime Hu : > 2017-11-09 18:33 GMT+08:00 Arnd Bergmann : >> On Thu, Nov 9, 2017 at 10:02 AM, Greentime Hu wrote: >>> 2017-11-08 18:16 GMT+08:00 Arnd Bergmann : >>>> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> >>>>> +config GENERIC_CALIBRATE_DELAY >>>>> + def_bool y >>>> >>>> It's better to avoid the delay loop completely and skip the calibration, >>>> if your hardware allows. >>> >>> Thanks. >>> Do you mean that this config should be def_bool n? >>> why? Almost all arch enable it. >> >> It depends on what your hardware can do. If you have a way to see how much >> time has passed that is guaranteed to be reliable on all machines, then >> use that instead. >> >> On a lot of architectures, it's not possible, so they have to fall back to using >> the delay loop. > > I get it. I will discuss it with our HW colleagues. > We may get these informations in some registers. Hi, Arnd: I think I can't set it to default n because it will be called in start_kernel. start_kernel() -> calibrate_delay() If I don't enable this config, it will link error because it didn't build init/calibrate.c