Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3318851ybx; Sun, 3 Nov 2019 16:00:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzd74sxbpO5wMSbxHEcoM/LpYt9rn9/lhZ4pzmOBCpqjgejdYOw5YaYYZbV2l5CvqcNF0R8 X-Received: by 2002:a17:906:9c1:: with SMTP id r1mr20600274eje.217.1572825627820; Sun, 03 Nov 2019 16:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572825627; cv=none; d=google.com; s=arc-20160816; b=PqJzysaRXivTuY+8OuD+gr4jdHLadsjd3+soY+MkXUs9EtSIG0N1CRrRXMJXMOKDqS nrbfsrwksmULYPiejATL4gUlq/wGR6/fXmlEvBs2SV18/7O+5WTSLbp6FCwn1y7Bku0u l0U6gCgZ+NEiclLxb9c9NLcJOXIz5eiPJH7xSVfnkuQz2VPBw6+p33HStDokAlNPFSWI rB13p1bMoPKP6ZEMaVM/BG5SIxomFP36Fr2RGfQ4MQnQKzeWG67jNoXiFyqsnyEDMCv+ b83QpEVw9rQq/1alkSY0S++xuzYC02koLOg0UjelBeyl6FHIIGkW9sNDVlq2VmmMmeQW pWJA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=DcgIA0yPIvsIGKQnb70qIrRbOwcnGxkyD0NueTd0dnM=; b=YHiZ3pAQl+XzjAxTV05jPx9tRHeC7XGCLa+yHMVsCap2lmHPGb0pMblFVMo+V0VGbO /jFfqPENxCqaG1R8trD96oJOO+IKBAiUqWmKV1oiQBiF6a9nztGBWOAZIyyWOsi/SYGv knpYrbyQzgBS4PDRQrGXM7BtJZe+0bVTNnPyjSRPLewRJx/gD8GD1zs2lPauuehxkHSb UzGO2hO8XFIk7ssj9UklweeHCv/fp2RLnascYFuAJArO+nRt7rZQ7tWnrr95RdPcdgJR JJDIuW5n9rzDKBCIBKvhZBuFTKshQGIMkQJz/jxsakrkJcq4X3s+01RFJOk7PgYv8dOa jO2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mQpQbIVE; 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 a16si10050633eje.336.2019.11.03.16.00.04; Sun, 03 Nov 2019 16:00:27 -0800 (PST) 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=mQpQbIVE; 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 S1728423AbfKCX5S (ORCPT + 99 others); Sun, 3 Nov 2019 18:57:18 -0500 Received: from mail-il1-f181.google.com ([209.85.166.181]:44071 "EHLO mail-il1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728261AbfKCX5S (ORCPT ); Sun, 3 Nov 2019 18:57:18 -0500 Received: by mail-il1-f181.google.com with SMTP id w1so4406197ilq.11; Sun, 03 Nov 2019 15:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DcgIA0yPIvsIGKQnb70qIrRbOwcnGxkyD0NueTd0dnM=; b=mQpQbIVEcDI8CRk9oBXSsEWOIPA/u3lVHQtEmp62/AhDqcgq5susW8Vxp3qi+W27N/ Jwgk5pLmPI9eQ4ZzQi+KXT/MBd6rk1bPKIMVw9A3WHlu9ebn7Z47dkEqNkL+JaqaKiJV 2CRFfgYKvNWRPUBMgH++C8RNvTw9fZSy5ib0qf7oQNke18BttFMBnf1dA59IsanXEbyb e1nSY+RKs5Q9/WGf7akhzwwX/IpaGr3Eecs8KZnAkRSX3zhFKMdCd8MqULW/lAzP6cCM X8l1tpCp9fjC+qySDE62qrv/JRYo2DGYedkYvBDkTlqMoal8gNesB0QEsEjGkPseU2bO rkWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DcgIA0yPIvsIGKQnb70qIrRbOwcnGxkyD0NueTd0dnM=; b=mXP6znkabUtgSDpOsPrNDT+ktEqSSCQD/dS8jtjIS9jkGi/UKqx8BHdfJgLmyJ1Zb3 c2A4GEI7k5/CToy3I875cq5QTvnqGNKjkaRHEGWEgxjSSzR1I8NniIiSJjcPEPxU/5H3 UHExHeRBitwKzFwQU/Se4DOrvwbkq0hLroOPd0iC18G4XS+nusaab5kJwpwk3Mc/2NCJ 0L1tQ9VLb2TJv85vk07Ad4FRoYlRoJqZOnZRwJfC0nAcYD06We63XraZN45bqOxTncfv LPX8hZzGMsOCTysKRJekJ2ITLIgWX3VGg2KEQjfRYINascki6D8ooYimzmkQ5qnOuNwK waAA== X-Gm-Message-State: APjAAAWaB5KadEM73C5eOZSglHNFDP2+ahWuykRSTiLoPolIafhmuNH3 ysDWZALjoGWu2BSbqGGgh/Fq55R633kwc0fZDDM= X-Received: by 2002:a92:395a:: with SMTP id g87mr26581440ila.206.1572825437554; Sun, 03 Nov 2019 15:57:17 -0800 (PST) MIME-Version: 1.0 References: <20190620062246.2665-1-e5ten.arch@gmail.com> <20191029210250.17007-1-e5ten.arch@gmail.com> <40DC5B42-6C0D-4A5B-B23E-884ADB0108F0@zytor.com> In-Reply-To: <40DC5B42-6C0D-4A5B-B23E-884ADB0108F0@zytor.com> From: Ethan Sommer Date: Sun, 3 Nov 2019 18:57:06 -0500 Message-ID: Subject: Re: [PATCH v3] replace timeconst bc script with an sh script To: "H . Peter Anvin" Cc: Jonathan Corbet , Federico Vaga , "Chang S. Bae" , Andrew Morton , Arnd Bergmann , Masahiro Yamada , Kieran Bingham , Ingo Molnar , Borislav Petkov , Mark Rutland , John Stultz , Kees Cook , Corey Minyard , Thomas Gleixner , linux-doc@vger.kernel.org, Linux Kernel Mailing List 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 > The point isn't to make it work *now*, but getting it to *stay* work. Since the only thing that can change to affect the outcome of the script or program is the value of CONFIG_HZ, isn't knowing that it works within a range of any reasonable values to set CONFIG_HZ to enough to know that it will stay working? I just tested again using the bc script and my C program, and this time I tested every possible value up to 100000, and they both still matched output. It doesn't seem like there's something that would cause the C program to stop working in the future due to precision issues.