From patchwork Wed Feb 28 22:00:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 208057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a1a:b0:17b:cd04:e0c6 with SMTP id 26csp226170rwa; Wed, 28 Feb 2024 14:16:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXic7YufGBvrfHAD8kNckocxTzB+Sgvo+oGMWgzR37M2nKEzQUBgcaHCyORLFPC2HGZUNFNLdwaxDXRTFW3KjsoZjKxGA== X-Google-Smtp-Source: AGHT+IE8+6OV5SVYvMbaMN5E3aOqKxFQfAoIdZxkvlk4Ie2PcNkWxW5sfh1zaZe7zTAn0eP77mh0 X-Received: by 2002:a05:6a00:194c:b0:6e5:3cc5:8b91 with SMTP id s12-20020a056a00194c00b006e53cc58b91mr560788pfk.3.1709158594412; Wed, 28 Feb 2024 14:16:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709158594; cv=pass; d=google.com; s=arc-20160816; b=MRTx7lslok5Bg5p3J4ongZ46kcvq/xfsKL/VJ6Au5TXfXgy258qjx/Qi/KgyPs5vif 8wCuvgKNKO/Y9N3hzlNEwWLScHFTUh2GHn1ROK6a8Wqi/896c0x/WwTD+1c1tzQDy2Uz lT+1ie8rIBdg7dZLest+h8H2FPZ66zIEy54q7ACgTvxdD7g8wpXYz2ZebLx8cEecpiW7 dKEp98V3K5zeW6SKCT3AWbAoVKqUu1NudwEpxuglaNNgC8BmsjkKlszwg/0H0OKU7ipV zJ7mtFXMlFKRho5vqzoKP7QaopPBKVqLYa3RTVHi5VbceceaNKH9tuinVGt/SJrkjpX0 CSUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=wiVaNdwW/PB2K/TUo+duWDQUE2T1VobPhccqg/kHJR0=; fh=MlXxPvob/82pMfsvxmTeoRjJIQ2GXvBwsK+pYFYD5Z8=; b=ys1nMsY3mPOJeabNdRJVKz/RGVVzgj8eQailaPvEOByMIP3sMoRLQs/mreP6RFp4pf WGPpmxWyFT3HovABzi7c9mZZw7tkJXReBfen88LnaHlxRo0me/UX7tq8KYCOrG4yTjOJ KATkiphS3vmMcwxixUlyGA93ntRlMHLzB/8focApp2CyoVjcvRNIGuFWfJZyMYwoFxQU /OQebR5YVCnadCljxsDnUv8sfXhGfs6Vo2cT5A1GmLhaAqnB6Fw1tCGR8ZSqUYZWVjtN W26ZM8l9sJndTquYuOcoIaTY0Q/49HQMfCxSlc5/hD5+F+4sulNQIoSbvooFQh376LAy v3uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VlKeYOdg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-85754-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85754-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ei52-20020a056a0080f400b006e47d95408asi317193pfb.145.2024.02.28.14.16.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:16:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85754-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VlKeYOdg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-85754-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85754-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 849B3B28CC9 for ; Wed, 28 Feb 2024 22:01:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F1B97D09C; Wed, 28 Feb 2024 22:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VlKeYOdg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Lrw8SHtZ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C07917290F; Wed, 28 Feb 2024 22:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709157617; cv=none; b=fIqioub60mVSEU4J89Fbjd/ADvbghhjtASkEk+dQfEmg8OghxjV8x2OkE6D1pMa9yyO/s1z1tsdPz/Jc6dWwbNfjwySOEsA4ehFG0Wl9WmLe7db6vC3sM07qkBPQQNW1fzAhLvsoafZsDGDW33tJ1xOSl+WJhZxmmDlVdvrRjRQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709157617; c=relaxed/simple; bh=gaq5TYTqW08ZNeBM939Puu1SQTVAgMBneQ3qgHGe8Go=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Zt8dq+71blhgyM+IoqeT4g4HxICrbH+uwa1f8W7R+YCe5HglRG5pl3ZFTJmjDnsWWZYU03laXYSmhuXg81Tj1sujogLz7iD6noJa7BKLHmgJ81qtz2wa1N5poSqQk444szQsm0zu5wN2d1W1rHiWvN3qyYSvZR8X6nGIdBXS9yE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VlKeYOdg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Lrw8SHtZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 28 Feb 2024 22:00:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709157608; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wiVaNdwW/PB2K/TUo+duWDQUE2T1VobPhccqg/kHJR0=; b=VlKeYOdg2cnDGheb7WAIG+lis5CC6wY+SFHCvXSpwJoVu5x0hleJM88s4EtIpypuSo6OeQ tSbdaP18kMIWE42U4VIWjM1n/TTaKXtKW86w1llNMqK9TeKm3joNuLGtgZ6ieaFHNPrwzI QtJKgIoi7pGtcF8TYSOk5w4euqFWJSf7l3S71MeArUU1QUMSkMTqN4uvcEIVlFOv0bJmnu 3A1gmgRWaddGkDYIDRylxJi+YU9QlkR7e8HPVwXSpRlodPiZ72XGIb5eI4nNW2pFeAnSXo ARX2yfiglyocy695Gc5qUkjYMOTryZFpAi5+omt0Yy6eSqYADbknGtNZ/bRbCg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709157608; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wiVaNdwW/PB2K/TUo+duWDQUE2T1VobPhccqg/kHJR0=; b=Lrw8SHtZD/9ttqFfhheA+3QEbSOS6wCNl6eyn2DkYuBBEByt5fvPXGirsfy45/kTMqjNko 4vyFd/PGIcas6OCA== From: "tip-bot2 for Alex Shi" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Remove duplicate descriptions from TOPOLOGY_SD_FLAGS Cc: Ricardo Neri , Alex Shi , Ingo Molnar , Valentin Schneider , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240210113924.1130448-1-alexs@kernel.org> References: <20240210113924.1130448-1-alexs@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170915760769.398.2928849589357715130.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790511675828965157 X-GMAIL-MSGID: 1792182681937404664 The following commit has been merged into the sched/core branch of tip: Commit-ID: d654c8ddde84b9d1a30a40917e588b5a1e53dada Gitweb: https://git.kernel.org/tip/d654c8ddde84b9d1a30a40917e588b5a1e53dada Author: Alex Shi AuthorDate: Sat, 10 Feb 2024 19:39:19 +08:00 Committer: Ingo Molnar CommitterDate: Wed, 28 Feb 2024 15:29:21 +01:00 sched/topology: Remove duplicate descriptions from TOPOLOGY_SD_FLAGS These flags are already documented in include/linux/sched/sd_flags.h. Also, add missing SD_CLUSTER and keep the comment on SD_ASYM_PACKING as it is a special case. Suggested-by: Ricardo Neri Signed-off-by: Alex Shi Signed-off-by: Ingo Molnar Reviewed-by: Ricardo Neri Reviewed-by: Valentin Schneider Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/20240210113924.1130448-1-alexs@kernel.org --- kernel/sched/topology.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 10d1391..0b33f7b 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1551,11 +1551,12 @@ static struct cpumask ***sched_domains_numa_masks; * * These flags are purely descriptive of the topology and do not prescribe * behaviour. Behaviour is artificial and mapped in the below sd_init() - * function: + * function. For details, see include/linux/sched/sd_flags.h. * - * SD_SHARE_CPUCAPACITY - describes SMT topologies - * SD_SHARE_PKG_RESOURCES - describes shared caches - * SD_NUMA - describes NUMA topologies + * SD_SHARE_CPUCAPACITY + * SD_SHARE_PKG_RESOURCES + * SD_CLUSTER + * SD_NUMA * * Odd one out, which beside describing the topology has a quirk also * prescribes the desired behaviour that goes along with it: