From patchwork Thu Aug 17 08:10:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 802414 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HeaMyCyk"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xXzLt2FMVz9t3Z for ; Thu, 17 Aug 2017 18:06:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id F2AA5C21E9F; Thu, 17 Aug 2017 08:06:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BF33CC21E9F; Thu, 17 Aug 2017 08:06:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 38C44C21E7F; Thu, 17 Aug 2017 08:06:22 +0000 (UTC) Received: from mail-it0-f68.google.com (mail-it0-f68.google.com [209.85.214.68]) by lists.denx.de (Postfix) with ESMTPS id 6F6C4C21C58 for ; Thu, 17 Aug 2017 08:06:21 +0000 (UTC) Received: by mail-it0-f68.google.com with SMTP id o72so3822152ita.3 for ; Thu, 17 Aug 2017 01:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=2vwWEi7CAv8BsaePotxT3CBcur2lPUSjvDL5BwwmTTA=; b=HeaMyCyk97WPQAK79IZABZjkcQp1QnIiruBmfOVBSSP4zyAYD4aiVoHY2qqDwkAEhF eEOTir+JdiQx71l200WykrcXCTaCdkewyPOZw9oXm52uucBDDX8LysvtQvvxXIQ4DcB2 52Zozq6RQF7DptsA4AyUPgqaAnuCBlkv52hE4OtYML9PG0r8itL8iXo3Ohpa+288pjJw h09i77td+tdcaLeAbPRz9Ct0P5EV2G7DXpCVXNxQ1SRxu4vCVf/V+CSj0mohtMxmLZLC XSzQHhlR0ZUD2UpktUrI4/TKHJz+hn7vwDKJND4YjbAQnLoqQYHXsVcjZZboJvWuvFIh WGSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=2vwWEi7CAv8BsaePotxT3CBcur2lPUSjvDL5BwwmTTA=; b=jVxmDDPAEqYJnj50kYliTtHpVfP8FA42BLuJjc7hDJvvjRxe+gAcVVS+4al1PUviOX 7Wkx5gjPZvnFL7i41DgU0HntM28GVygMYsUqX7Ww/Nic17eBUvojznXWWNPolS7FVpG4 HqcQw1naRKIwMAy7al9uy7z+O0q12S87wRP8YB7GUUQzcD3CC9kymm20EOcVg4vspMAN Na/nCtiOuhwN6xe//d3CJH4siRhUnsZotEW7AAe9k98E8fsfKdVapd6ICSN4O1nzFpTN mfOjcQAjkI3Btak7GCfu+V34jtHJfLvkioZ5NMDly4b4w4WRbB9797HiSEvonXg5Dg1v XS2A== X-Gm-Message-State: AHYfb5gB2WGC6+5iUzZyDnf5QNl1V3nj2zCoSKM5Bo/No+Bb2wUhR+th 9qID8+QJKYKxRA== X-Received: by 10.36.152.194 with SMTP id n185mr946537itd.133.1502957180196; Thu, 17 Aug 2017 01:06:20 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id v65sm1377797itc.32.2017.08.17.01.06.18 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 01:06:19 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Thu, 17 Aug 2017 01:10:42 -0700 Message-Id: <1502957443-12608-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH 1/2] x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 7 +++++++ arch/x86/cpu/turbo.c | 2 +- scripts/config_whitelist.txt | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c26710b..8d40f89 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -520,6 +520,13 @@ config AP_STACK_SIZE the memory used by this initialisation process. Typically 4KB is enough space. +config CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED + bool + help + This option indicates that the turbo mode setting is not package + scoped. i.e. turbo_enable() needs to be called on not just the + bootstrap processor (BSP). + config HAVE_VGA_BIOS bool "Add a VGA BIOS image" help diff --git a/arch/x86/cpu/turbo.c b/arch/x86/cpu/turbo.c index bbd255e..c0bff75 100644 --- a/arch/x86/cpu/turbo.c +++ b/arch/x86/cpu/turbo.c @@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR; -#if CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED +#ifdef CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED static inline int get_global_turbo_state(void) { return TURBO_UNKNOWN; diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index db28457..138fb0c 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -338,7 +338,6 @@ CONFIG_CPU_HAS_PREFETCH CONFIG_CPU_HAS_SMARTMIPS CONFIG_CPU_HAS_SR_RB CONFIG_CPU_HAS_WB -CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED CONFIG_CPU_LITTLE_ENDIAN CONFIG_CPU_MICROMIPS CONFIG_CPU_MIPSR2