Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2283612pxb; Fri, 8 Oct 2021 04:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0TDgEnH6MMXJogXLV+u41qGJYa/i5dyvmhIECSDkonMpj9rn2FekNk2HzwLLT1QF4Dh0f X-Received: by 2002:a50:bf07:: with SMTP id f7mr14653251edk.288.1633694186650; Fri, 08 Oct 2021 04:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633694186; cv=none; d=google.com; s=arc-20160816; b=DrphuIAGpGqANewYZpBcAZZv3P1KGf2WJddfwOig2r/NsG0ZgLBz8zwmw8c12YxERj 7pB/zyA6rWxeZZRHK1RG+V2ttJ0YUxKqC+/Ehv8QaqzUts7hO/p1oGCa5Mo5TXHJPsdu qmdvTIAylNESpGgKXzUpDO81PXhRQEojyrdOjho8eX/kFJAqKB3axKKCV+Q71wzKQHxU 9JgrA1KcW0f7RhbzSbLPO62RMclgGT/MVp3YIJLBN01jZVOCbznA0alw4aKP32vpf78k FQII81gMA/TykBOjFEbYCeBnegKAZaKK7AjQx+fhtyjFbPWJxFeJuyNZUD5CD2v8XCHW 9FoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Nnqn5T3SlMaGG8w10BitAqdUFrZ0qTox1jgzoHYtsG4=; b=lde4NPVhmihFI1ZgU4nhp4vaMVemk+j2Ekfg5iQtaC8Sj1/Fn2UYs5YUhDB2b9lffV EC652MwiSYKdqE05Fd/K8kIq74Nc1cwholsT01XjaS0tEOPGMufAf4jZ+kB8woGih3Ya rcH/no5JmD3PGh1rPOtO8jYMEmsV+dfig5yTlQapDM4S4CVwaIIitnZeCYaqPYcPDjcu 7vswDKOnF3vpeVhQ4vwOMEuVyD4ZzMX96OWa6RtGP40aBA78EEOklgDBEO3rnExoCexJ ahNLFRb4pF4i20Nq18Q+6MzovA/G+x7CdvkJQOEl47IoUXfgevv+AKtqxElSN9y9HiNt 0RwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si4999889edd.324.2021.10.08.04.56.03; Fri, 08 Oct 2021 04:56:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240718AbhJHL40 (ORCPT + 99 others); Fri, 8 Oct 2021 07:56:26 -0400 Received: from foss.arm.com ([217.140.110.172]:46280 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240334AbhJHL4Z (ORCPT ); Fri, 8 Oct 2021 07:56:25 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 672C4ED1; Fri, 8 Oct 2021 04:54:29 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.196.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B0B9C3F766; Fri, 8 Oct 2021 04:54:21 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Cc: Peter Zijlstra , aubrey.li@linux.intel.com, song.bao.hua@hisilicon.com, tim.c.chen@linux.intel.com, jonathan.cameron@huawei.com, Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Arnd Bergmann , Linus Walleij , Geert Uytterhoeven , Andrew Morton , Anshuman Khandual , Mike Rapoport , Mark Rutland , Ard Biesheuvel , YiFei Zhu , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Kefeng Wang , Sergei Trofimovich , David Hildenbrand , Randy Dunlap , Masahiro Yamada , Kees Cook , Nathan Chancellor , Nick Desaulniers , Chris Down , Vipin Sharma , Rasmus Villemoes , Daniel Borkmann , Vlastimil Babka , Frederic Weisbecker , Hugh Dickins , Michal Hocko Subject: [PATCH 0/2] sched: cleanup CONFIG_SCHED_MC & friends Date: Fri, 8 Oct 2021 12:53:45 +0100 Message-Id: <20211008115347.425234-1-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, This stems from Barry introducing a new CONFIG_SCHED_CLUSTER which highlighted the current state of similar Kconfigs isn't great: http://lore.kernel.org/r/CAGsJ_4xZD0sG0Df666f0bvHOzuPMjnw0dN_mArER5k1pJ6LPLw@mail.gmail.com The changes happen all in one big patch; the alternative would be to have one patch per arch that adds the ARCH_SUPPORTS_SCHED_* selection, then a final patch that adds the generic definitions and removes the arch ones (which I can do if that's a preferred approach). Briefly tested by setting ARCH=foo and playing around with menuconfig. Based on top of Peter's queue: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git -b sched/next Patches are also available at: https://git.gitlab.arm.com/linux-arm/linux-vs.git -b mainline/sched/topo_kconfig_cleanup Cheers, Valentin Valentin Schneider (2): sched: Move Kconfig.preempt to sched/Kconfig sched: Centralize SCHED_{SMT, MC, CLUSTER} definitions arch/arm/Kconfig | 18 ++-------- arch/arm64/Kconfig | 26 ++------------ arch/ia64/Kconfig | 9 +---- arch/mips/Kconfig | 10 +----- arch/parisc/Kconfig | 9 +---- arch/powerpc/Kconfig | 9 +---- arch/s390/Kconfig | 8 ++--- arch/sh/Kconfig | 1 + arch/sh/mm/Kconfig | 9 ----- arch/sparc/Kconfig | 20 ++--------- arch/x86/Kconfig | 26 ++------------ init/Kconfig | 2 +- kernel/{Kconfig.preempt => sched/Kconfig} | 41 +++++++++++++++++++++++ 13 files changed, 59 insertions(+), 129 deletions(-) rename kernel/{Kconfig.preempt => sched/Kconfig} (79%) -- 2.25.1