Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp792954pxb; Wed, 3 Feb 2021 19:02:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7FJkMPtTf/Zu8B1JduM0G0Rw8n7EqU1i7jWY2HJMA6Ya5UoENWrhM/Ap+cE8t7QVSwfvd X-Received: by 2002:a17:906:404a:: with SMTP id y10mr5911552ejj.331.1612407763850; Wed, 03 Feb 2021 19:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612407763; cv=none; d=google.com; s=arc-20160816; b=Xbk/XsLP/8mtIW9ozbZpqxBH9YVX7JXoTyKyuGJ8OdbDuzeKnLQmEMUHG4E6jXC9Xf 3I5mU/xH4pbf5LAA8L/WlQH7503/pe+PxFC8GiREZ+uQ8eWSpjrO7BiHMAOoAl5Cqjq8 0hPtfIa3GLi+jHAcRAXpjTjCUiM66zKJ/Xf0ET0cfeOiXEzifPirLjDZpHx7WuZdSHCI eMzfav4Qd8g4CiR/CNI6lXDGntY0X5IB5EK9PYKqI5ENr8GS9vb3U4MlPbMcKBdHZbvb bwJygDNxi7HHfREGvsKeOTUEFzHDxIbwTp/qRHWM81Z6R/IwVWVDpJf/5neWR5tU/5Gq ejCQ== 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 :sender:dkim-signature; bh=g/42xScXFf5XR9eMr0xLh0b+pVsAWUjZtArYlETXels=; b=WuJyTqqNJPlmjCdNt8nZs/2QRUnIPLw7vGgpa/+VRzYjb1n4clLB4cVHAovENxg7SG 0pK6CUtMRnwuT9Gso7BXjN1S+Tg3fsYYYplqL8iwEPtnxO14FJjPoqGz4yonb3zmxNL+ qdBry+yIm6tWe/eHV2lDGqisRKpZ1RnQpvGHlZTMv2LRnQ4a9IG4+KyXt0Y0jPzAQQa/ kwnNqrYWRTw8yXc5lN2PyAZdU/9pWIGTnPREtVC4DchwpLxvGK9afijdyMSmQn8T6hwj oDaggLE1Kpnv7kQxAtKiWjR8hhfxP5NxXjukwhNCy6enW15PIHgyOOMN7eHeOKSA+1Fo o0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=n7ZfzsEU; 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 z2si2897415eju.570.2021.02.03.19.02.19; Wed, 03 Feb 2021 19:02:43 -0800 (PST) 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=n7ZfzsEU; 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 S234145AbhBDCWJ (ORCPT + 99 others); Wed, 3 Feb 2021 21:22:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234520AbhBDCWE (ORCPT ); Wed, 3 Feb 2021 21:22:04 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E57D5C0613D6 for ; Wed, 3 Feb 2021 18:21:23 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id e62so1921436yba.5 for ; Wed, 03 Feb 2021 18:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=g/42xScXFf5XR9eMr0xLh0b+pVsAWUjZtArYlETXels=; b=n7ZfzsEU5707Jb8IFDf1sI6TC1bWTqzNHAeSUUfZo6+TTa4G+zkrE+jq7EeB9rXt8b bc8UrkS2HbhCKerZqsCgGukMrXyUy15p5GKBgj6kDkjwZ/Hjjxkv94K7l+CGf3FCnK5R S/HcjwlI2u5ouqdYw8+yKCGfqROfXbjDVF/5UYAAVWQRb5kMzKxfbFwMe3UokrSa2b9C q74Aw9KeYtT6BAab5JJuBH35KlcFsNmyNeeNMjrRbh8MmjL71ZTagaC7rpxW1sihQDPN jtqdSBf4q1Wfc6R4fr+qQKvlaMi34nkMhOAr+IgDgeJb6fATQdaFd2hxB1OWqjlcNlH2 wE7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=g/42xScXFf5XR9eMr0xLh0b+pVsAWUjZtArYlETXels=; b=DxEYhzGOom6uw4SLAXXvI7D39xLBIFA266LW24kAaaiczKrXZCD5KP4zqHJ8OchfPg sDyN/OIscIH/oy+YPJjbVuRlO9H9dspV1ChU9aYEUcNOTn1kP5hUsyrrMKGDQUeXB2yh meyumwUXD+FZ0oVoFAnAJ2ZDpg233XR5FXQHQWzHA0WFnyEGMn7JVvMvUpsWbWNr+lcd 6O94GvwCmDP4ihWyf0MBUJ30xB8y0NPHrKJLtGnAUNJm3w/U/wQvH5l6qwdXrZHj6uIz wdy3OzL2eyoH9ya9kIUvuq65JsP5UOoEFZ04BLlZrJaRZ/JwDmd8AFohoyBYLTUoYCqI e2qg== X-Gm-Message-State: AOAM530ar9kZYNp80mBD05xndUY42clpNsG1N6Hs6RtG5z/bx0Ym4j6c IcZ5v4OREMKX9ahaA4sEp+Tqf2C/VlAc Sender: "amistry via sendgmr" X-Received: from nandos.syd.corp.google.com ([2401:fa00:9:14:91f5:1565:43df:748a]) (user=amistry job=sendgmr) by 2002:a25:8311:: with SMTP id s17mr8883399ybk.259.1612405283198; Wed, 03 Feb 2021 18:21:23 -0800 (PST) Date: Thu, 4 Feb 2021 13:21:09 +1100 Message-Id: <20210204132043.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH] 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 respoct 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 --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 21f851179ff0..28f814493c7b 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -890,6 +890,7 @@ config HPET_TIMER config HPET_EMULATE_RTC def_bool y + prompt "HPET RTC emulation" depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y) config APB_TIMER -- 2.30.0.365.g02bc693789-goog