Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1102826pxy; Wed, 28 Apr 2021 23:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFZFAkWOC2gjzc7ZwoflqI6HuG6YjA6mgenX7XaNS1W+xehoWyzL/8dFzSvj+4x6/2qXKg X-Received: by 2002:a17:90a:f40f:: with SMTP id ch15mr21149125pjb.113.1619676143016; Wed, 28 Apr 2021 23:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619676143; cv=none; d=google.com; s=arc-20160816; b=PFK/0Wd3TEdjRP9Tmz1MnNgzflO3R+x7i4QJIuYuP1duvgnLoSmznVFStSZbVEH2gk vTGzczG6DYyAse7FgGzdSdj8enFtOgmDa8JYs20YGjfEa6EERJKtI/oYCogf0rH5A17C 5xxCxSD88yfreQdMVAEs7bumYGH9K97xYf3Yjxw9k5u0CMJCaShegLJOPHVYNH7r41Nx PTuiDCjzJm0kZZtZGzQ4wgXTfpy/W8/qmpCxDgkVpbKRhN840c8Vmv/q3fNaQCV/3QFc IzfOzUHdwg6Hk1UfChVUcWLyDPIdDuxIjTIBOf1r+l7vNMFajr8FGCmsrO0gp/CHF3zc 44eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=zm+O/Qq20Co4E8EekZlwvxA5d89XqR6ilK7cJRDGIHI=; b=fN9Gb/dzhgOpyCsmnp+XpekbD2F7ocbiCe9OeR8thPu2DhoQN79MeSUZDKf4BGHrQQ UkcwMzk+A/kNdUdCUIciqsGvh7O6Eq6XzjoXIS/IjiSfOPL1Kmv5GRbA5FjVTSE205jb 26rnmb4ivcNzSw8MSHwFBAd9UDeDScTjTgOL5IY/dN/zZpAD2RpXHkednfviYP5AafWG SBLafLB+bTrQK07WRtoqhikjSGMJp2JXL53h0my5kK4PzZovrRw2eEMmcuzXEy3wnIUy pE93Z41HZZSU68cYhrtf5N5Fs9QAXLbkGtjuG565qp1xvze8oE+JQJslBPXbDy6BlpoK QY7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PQ5LAgrr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si2206604pgs.182.2021.04.28.23.02.09; Wed, 28 Apr 2021 23:02:23 -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=@google.com header.s=20161025 header.b=PQ5LAgrr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbhD2GBO (ORCPT + 99 others); Thu, 29 Apr 2021 02:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhD2GBO (ORCPT ); Thu, 29 Apr 2021 02:01:14 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B93CC06138B for ; Wed, 28 Apr 2021 23:00:28 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id g26-20020a0caada0000b02901b93eb92373so8707577qvb.3 for ; Wed, 28 Apr 2021 23:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=zm+O/Qq20Co4E8EekZlwvxA5d89XqR6ilK7cJRDGIHI=; b=PQ5LAgrrjZYFZHr0feIUhMAgkQEqJvlq1d3k5jmEznQhOAYGvJjgLThWHXMHCEMJKB A3aMYGiO5OiN8eDOwGAoFIO9jRqscIQdxxuiF9S6xdeX7WRhrIb5DIK0ILpcjEYvXtH2 gF7Pjd3Ac8arM7HO03q3ovdJfiQHOC83YQzlNiQ3ejpCcveipsgum0RZzVrFz+aM0EVR y4A5ASujsc4hCZOM6Gkrxcnu9gM5OEIzOI3tNPCC+1yGg69UBLxUzHYe6Qfk0jOhYNbe TX+Euz+rbHgqCDbr7rC5S4eHL+lKaAucqRrIXSODfHQlhY9f86QVmBJJNp28llS3tqaw tBOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=zm+O/Qq20Co4E8EekZlwvxA5d89XqR6ilK7cJRDGIHI=; b=T06CB3c9cUMG1k6lv+jwPCI2aGMqCgSM8iRQEy81St87tP1Z83EqL64EUeJ/s1rN0j VEaOVeH9E4nmuut3GGvlM6Kb3N/t81+JP2gqZqsu/BH/ZSP3VctgAlXJrHUh/qBsI7Q/ s00b1BqHRqs7QG/vzEhWzrdDzsXedL0wAMWXrDJakZ5LwhYV7mKXMa5hHPEcLMiWNr45 AMo/18S4OtgEep9lj9GiL2U9rVpsAQ7izqRJOJOICA+xA5l0v/i3h5pozIcyxhMzUu+E 2TO2Z/AcRm1BnhpFX3JUOG77omP24wQ2Nx3HWAbohGw9w0biHgRMWV4EUdV2pCT1eRIT REYA== X-Gm-Message-State: AOAM531mcVlJuBJC4nkN3SGmaksM3Ne6vaEqDZlVWGZE8YztPVQ6UJBt sxFuFZtABLyfacsLNSgdawabhkV07d3A X-Received: from nandos.syd.corp.google.com ([2401:fa00:9:14:30c1:7a5a:2ec9:29e5]) (user=amistry job=sendgmr) by 2002:a05:6214:1d0c:: with SMTP id e12mr33333658qvd.0.1619676026057; Wed, 28 Apr 2021 23:00:26 -0700 (PDT) Date: Thu, 29 Apr 2021 16:00:17 +1000 Message-Id: <20210429155950.v2.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog Subject: [PATCH v2] x86: Add a prompt for HPET_EMULATE_RTC From: Anand K Mistry To: x86@kernel.org Cc: Anand K Mistry , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This does two things: 1. Makes the option visible in menuconfig, allowing the user to easily disable this option 2. Allows olddefconfig to respect the option if it is set in the old .config file It's not clear exactly why the second consequence is true, but it appears to be because when the conf tool reads the config file, it only respects the existing setting if the option is "visible" (see scripts/kconfig/symbol.c:381). Signed-off-by: Anand K Mistry --- This patch was previously discussed at https://lore.kernel.org/lkml/20210204132043.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid/ Sending as a v2 because a merge conflict exists with commit 3228e1dc80983 ("x86/Kconfig: Remove HPET_EMULATE_RTC depends on RTC") Changes in v2: - Rebase - Fix typo in commit message arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 0fc82237414d..55e652aa42d1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -896,6 +896,7 @@ config HPET_TIMER config HPET_EMULATE_RTC def_bool y + prompt "HPET RTC emulation" depends on HPET_TIMER && (RTC_DRV_CMOS=m || RTC_DRV_CMOS=y) # Mark as expert because too many people got it wrong. -- 2.31.1.498.g6c1eba8ee3d-goog