Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8128210imu; Tue, 4 Dec 2018 03:30:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UvlSCpVt4WKzF2Md2kX+jk9jz3jj//iDgcfmU+OiZntjyc6tHjM54LOWF72UJ6sB6aP7nO X-Received: by 2002:a63:2849:: with SMTP id o70mr14954941pgo.155.1543923000705; Tue, 04 Dec 2018 03:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543923000; cv=none; d=google.com; s=arc-20160816; b=bDboJvW5IPUn8KsJDhVcaXKTsDN63ZS2inEwfhClvki6um0QpF94u79Ys5lxe1mzV9 BpLlJsxn3undsnaVgk473Vz9Ok7i3su6NKkpIj/8v4W5VHvZsHdyNq1bpE4no73lILP/ f9kpRHpQu817FYi7p4EN8flwWpRWWx60EJDqgFkI00GIT4nFE1yQbplE0YX9+c6CEItz yiGkTcfDofDZv6na9kGE8IiUe3kHKRaZUiRrTBPo+bcTc9t7SCACykk/dheAci2R4HA/ ZIVR7xgiLWQfaJdLfJnGPS4y28g0z+cKaMrJ1hyrdDYsfw7P8sg1oDD5Pyhk8suEa74y xo6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aYrSa7BPCxOgjjcMyw+lKsMAHUxJKg5yJdfJIi5GGF4=; b=rLPrlmjxjPTxLB8C1Q0kgOXZHic1Noe5I1TW0Z7fzLgeKvawzQce7RT4dPaz+uHgCp b7hy96bsZwvi7QdYtasW6Mb8OpE68hKoLNJqM8peDWvtp+Lbn//6wlcI5BeoSSnHDAeI 5+7+3P8tGgsdGcNHutTo2sgevDLB0sgsOy+IDuozDWZndfoecDDAeRpC4g239VbiigB2 t15q8wkJoO/T3hahX3ZYCptRRgm5VCMeUNtkTmwK3j/naizNyS1/RGoQVMq6TAkd4vOE pprEANQ2zq1EUubOZdKtkTsa1NSlQ85Xtm8lwTWAN90MjnqA5Bk9bXDLOOEopvdM0DkM eyPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XVVq65r+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si15942281pls.146.2018.12.04.03.29.45; Tue, 04 Dec 2018 03:30:00 -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=@kernel.org header.s=default header.b=XVVq65r+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbeLDL3P (ORCPT + 99 others); Tue, 4 Dec 2018 06:29:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:42320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbeLDK6I (ORCPT ); Tue, 4 Dec 2018 05:58:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 143A62087F; Tue, 4 Dec 2018 10:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921087; bh=qz/05cpR1mctgM5TIqiCua0msCJ9TmtyTF5DiVVdHSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XVVq65r+A41/WvoRd7EKYCUh+KcKxK8C+dn2lW72EDIRFDBnl+6lgUZU5b59Tli3v t7La/FCiBTNmLlQVctZKp1iqAB3cAxdPnw0SUvhcVmI9n8G2jDDpeplRZd+Z1M5TAx mZNqf4AhmZNZEScAUGnX7qh/jqpOoj0iy//0F3Pg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Jiri Kosina , Tom Lendacky , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Dave Stewart , Kees Cook Subject: [PATCH 4.19 041/139] x86/Kconfig: Select SCHED_SMT if SMP enabled Date: Tue, 4 Dec 2018 11:48:42 +0100 Message-Id: <20181204103651.670424806@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Gleixner tglx@linutronix.de commit dbe733642e01dd108f71436aaea7b328cb28fd87 upstream CONFIG_SCHED_SMT is enabled by all distros, so there is not a real point to have it configurable. The runtime overhead in the core scheduler code is minimal because the actual SMT scheduling parts are conditional on a static key. This allows to expose the scheduler's SMT state static key to the speculation control code. Alternatively the scheduler's static key could be made always available when CONFIG_SMP is enabled, but that's just adding an unused static key to every other architecture for nothing. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Peter Zijlstra Cc: Andy Lutomirski Cc: Linus Torvalds Cc: Jiri Kosina Cc: Tom Lendacky Cc: Josh Poimboeuf Cc: Andrea Arcangeli Cc: David Woodhouse Cc: Tim Chen Cc: Andi Kleen Cc: Dave Hansen Cc: Casey Schaufler Cc: Asit Mallick Cc: Arjan van de Ven Cc: Jon Masters Cc: Waiman Long Cc: Greg KH Cc: Dave Stewart Cc: Kees Cook Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20181125185004.337452245@linutronix.de Signed-off-by: Greg Kroah-Hartman --- arch/x86/Kconfig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1001,13 +1001,7 @@ config NR_CPUS to the kernel image. config SCHED_SMT - bool "SMT (Hyperthreading) scheduler support" - depends on SMP - ---help--- - SMT scheduler support improves the CPU scheduler's decision making - when dealing with Intel Pentium 4 chips with HyperThreading at a - cost of slightly increased overhead in some places. If unsure say - N here. + def_bool y if SMP config SCHED_MC def_bool y