From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63383C433F5 for ; Tue, 5 Oct 2021 11:04:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E32360FC1 for ; Tue, 5 Oct 2021 11:04:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234215AbhJELFt (ORCPT ); Tue, 5 Oct 2021 07:05:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233449AbhJELFq (ORCPT ); Tue, 5 Oct 2021 07:05:46 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0686FC06161C; Tue, 5 Oct 2021 04:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5RXETHUeK0IoWDd8SaOUu8GrGBoYdj45miweofV1tqI=; b=KupXzRHIt3+Y/Pzu29D8sWyaiV Xww0f73lBH9/jQ1W6k5CN0T8+6XGrOEE0VowKEnf82Ymy1v+pzvl69mhpp95GqSwAgZRkqAIWwTOU eVaXoG9lTXX+Dd6eG+JH6CKCmxwfpcVVVxdyMjZf4tCqSKvkExxEGACjV2k2y6aLv9zqz9VIvb2P6 faUolqJPjdESdCk4G5yDrJBb/08d6RMMGlr6xHY1bDVGzovCBnYhU//mmwo3eymZBO6nsABlzQ5AM QPo4IbwrzlGzTKyuzLWYLcAcfy6eX28dn08pSpPEeNkXGOMasPdqdIEoTv+jhpojLHDcig1tWM89V aF03Nfxw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXi9O-000FQG-II; Tue, 05 Oct 2021 10:59:00 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 2305B30019C; Tue, 5 Oct 2021 12:58:21 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0F544201A0530; Tue, 5 Oct 2021 12:58:21 +0200 (CEST) Date: Tue, 5 Oct 2021 12:58:21 +0200 From: Peter Zijlstra To: Barry Song <21cnbao@gmail.com> Cc: Tim Chen , Vincent Guittot , Dietmar Eggemann , LKML , Ingo Molnar , Aubrey Li , Borislav Petkov , Daniel Bristot de Oliveira , Ben Segall , Catalin Marinas , Greg Kroah-Hartman , Guodong Xu , "H. Peter Anvin" , Jonathan Cameron , Juri Lelli , "Cc: Len Brown" , ACPI Devel Maling List , LAK , Linuxarm , Mark Rutland , Mel Gorman , msys.mizuma@gmail.com, "Zengtao (B)" , "Rafael J. Wysocki" , Steven Rostedt , Barry Song , Sudeep Holla , Thomas Gleixner , "Rafael J. Wysocki" , Valentin Schneider , Will Deacon , x86 , yangyicong Subject: Re: [PATCH RESEND 0/3] Represent cluster topology and enable load balance between clusters Message-ID: References: <20210924085104.44806-1-21cnbao@gmail.com> <20211005075001.GJ4323@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 10:15:39PM +1300, Barry Song wrote: > > (also, all this stuff being replicated across arch/*/Kconfig seems > > unfortunate) > > perhaps worth a separate patchset to do some cleanup so that SCHED_MC, > SCHED_SMT etc > won't be replicated in different architectures. Right now, this kind > of Kconfig option is copied > everywhere. I am seeing SCHED_SMT in all of > arch/arm/Kconfig > arch/arm64/Kconfig > arch/ia64/Kconfig > arch/mips/Kconfig > arch/powerpc/Kconfig > arch/s390/Kconfig > arch/sparc/Kconfig > arch/x86/Kconfig > ... > > Is it a better way to move them to a common Kconfig and let the architectures to > declare things like ARCH_HAVE_SMT? Dunno, it's all a bit of a mess :/ I can't quickly see a sane pattern there.