Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1731690lqg; Mon, 4 Mar 2024 01:49:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXhXfsssj/5u0kWFKiTcT/+86eXhu3t41YMycwDg0AzSD7euh/BDFI0B39tDtn5hgClxp73e9A7ZkrZHQDFIIIt9icxq3XEhc4W6TPEUQ== X-Google-Smtp-Source: AGHT+IGysSULFqCD2uOpXvsNTNfn7PVcZX8edpqrrquwK2o7SIcNAu/TyF2JQDehZbrU2DrtuwqU X-Received: by 2002:a17:906:33d8:b0:a45:52af:7397 with SMTP id w24-20020a17090633d800b00a4552af7397mr1089011eja.44.1709545761732; Mon, 04 Mar 2024 01:49:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709545761; cv=pass; d=google.com; s=arc-20160816; b=uTKCh1KdX45VTwRBqdSGtOiZ3L7/XR04iaoYHRI22DdaJe73frxMcq/UhZMFpZe9HK UgaLgp6v46qWPvmcC9h6bz7nmSoYNllPKe8Lek6E/3SyXbWHVuRJ94bpFgzCcXXdhEyl 3ITZHxpbzfmHrtQhTCuRdhHSaIrLDWWDbJK6XvZd9qnEnsxjphb0vrPqeT0j2wkU08mT z/VITBpv8fU3c3Y/7TCVlBPR1PDpsQpCldYTgz7UJX6z08LYkFq23jchEIAXHSIv1qGh lxSuZt6i+bzeMdIVR8wxjm1H/83PMExAbok1I7zbyA6Ejzf3IhDqnOV12eRah2E+OnOL KQ8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:sender:dkim-signature; bh=nZlq0bY/zjZDSiZdaoEBJ6UeMOJDcZiWFNuH0wBv5YM=; fh=vtn8BV17FxZCrT5lfDoFHvvFiNhej5/zWe1lGP7P6Og=; b=MKRj8LTJTH5DvGWwDeFrfrbTADfKOC6Hn6biQTHzSlXiYCVNp3uvnTJdyIAG6tpOTt FDzIbwEdQ4uHXOprhwZ6O8PC94YPlqXIOMp261FjtSocaEQSGCmDzpI+UBGaRxR0a5Ta KTfsSzlZ8mTWxaOD3kSrPb7KuMRDgkmMgrpcABu4vELTzEeUFInGPuRxDywZRDLqVCa/ HYo7mH+RkoOGSGOmfs52azh2wySYTAafALTQwmLpYjGoGCqRxBk1Tm1Ush5zWAc7xBn0 vA1jjqay56NHhOTHzUSqtd7voU/VzMQDSYIbMqKP69yjKBbVobFp8BIJKtP8oB+/52XC VGmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SNDoXLOx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z10-20020a170906270a00b00a4436eea7d2si3767629ejc.919.2024.03.04.01.49.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:49:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SNDoXLOx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 62C871F232C7 for ; Mon, 4 Mar 2024 09:49:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10C2B22071; Mon, 4 Mar 2024 09:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SNDoXLOx" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 899A6249EA for ; Mon, 4 Mar 2024 09:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545726; cv=none; b=qddP/RVSOg85lYCYSBGrQXeBWrMyBiUbrnPUhgEusuOhx3tAw8lIew0Lhs8TcVRyCH9CynbMLtAmZ35Oj/idtI1Qr3qCYtbh7PCSG5Uk8L4Cxo8FD7UwyLHXcJsWIJ+3+FP1J0496HtEql57cJhAAck8KZY+24vNSl7mjPrSmg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545726; c=relaxed/simple; bh=uR56VaQdyXJ0R8QHE29Lj3rrF/jxHnBRV0SNOGJYrUM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aoJudtow+PXa7A02DptHMOOeY4pvW5Y85fCB3fNpC0UyHE2HPNdukGtnQT4aSmBRGF8YL44KUg/E8kDpObSzELAe4SWrwrNw6bx7A6bQGtWCCUzydkH4AeYBo/kDvGFDj861yLjxPyWJzGFnSl5c/t/0W4iyAI5eAwLyZcHqqPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SNDoXLOx; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a4515f8e13cso116625766b.3 for ; Mon, 04 Mar 2024 01:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709545723; x=1710150523; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=nZlq0bY/zjZDSiZdaoEBJ6UeMOJDcZiWFNuH0wBv5YM=; b=SNDoXLOxOs2IMciC4zUVWv6E41uV/OwhlHWlt+ZZjv0BhOg2qwO16Oq28ep1/aIo4y RV8dslsXBhD+c7FLh4HiJqYvbCHZDoihlo7/asYj8iTy4bMfIdDKTPA3vW6+jQk6dDgI qwCs244AA+hahtob7YOmdPqAZusi0v26zStJeQ+ipNAsaxgHI24bxT1o1dC7k+G7C+Tr XfmTSiap/FUahuNrPpON7xK8jX8nY69YKVjkhqqt/riuN6tGqXavdzCg1R6j0KyA5eCB eOJyMQus6vglaHV9pSxT2+1Wzh6RDOtrad8AuKLTDXzQS/Q/4HnwcIjlo7IaU+aJyRuZ d+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709545723; x=1710150523; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nZlq0bY/zjZDSiZdaoEBJ6UeMOJDcZiWFNuH0wBv5YM=; b=AM7gMrJjkyyAQ09Erfrd5jqXW0808VuGjb/ykUWN9nRsYQe8km6PtO55eqR+6taP7O QByWtsJGCLs1Dq5IhgUtfMgTnU2zNABRYXztFLXnuxJLXKDJfkT7R1FUtenMjEcTb6Mm tSg0huVh4OOpgKnPURf5IInFTG73AA2hd1a3Fo9UaMgVHoCeZyVHX1anOAYzbued16+k auYcsU+XTlCZSpq6bkM06b25KtxGvR+Vd+YuDaD3V9UBrkXTBco97F6EaXfu1h8ODOu5 aFezMhxdJO3dkVQ4Z2B8D7Md7BugSRW9HJleb9fOA9Ozc7eiK26nW9fr4m5OIgYmLYK4 lb1Q== X-Gm-Message-State: AOJu0Yz03rSzP/sT6nmSL5zla+96//WoxacW+OMfmGgXcd5TbVYmMXmR 455luVmdwPQIVHBumwvDJZOpJP3wkmrqY2tqWyW+OL6Mfs25uHelewSaAxksduE= X-Received: by 2002:a17:906:7809:b0:a44:19df:63dd with SMTP id u9-20020a170906780900b00a4419df63ddmr5578952ejm.8.1709545722541; Mon, 04 Mar 2024 01:48:42 -0800 (PST) Received: from kepler.redhat.com (1F2EF13F.nat.pool.telekom.hu. [31.46.241.63]) by smtp.gmail.com with ESMTPSA id s22-20020a170906501600b00a42e2bc82dbsm4569839ejj.169.2024.03.04.01.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:48:41 -0800 (PST) Sender: Ingo Molnar From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Shrikanth Hegde , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Linus Torvalds , Valentin Schneider Subject: [PATCH -v3 0/9] sched/balancing: Misc updates & cleanups Date: Mon, 4 Mar 2024 10:48:22 +0100 Message-Id: <20240304094831.3639338-1-mingo@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Improve a handful of things I noticed while looking through the scheduler balancing code. No change in functionality intended. Changes in -v3: - Fix a show_schedstat() assumption found by Shrikanth Hegde - Rename the scheduler softirq handler Thanks, Ingo ======================================> Ingo Molnar (8): sched/balancing: Switch the 'DEFINE_SPINLOCK(balancing)' spinlock into an 'atomic_t sched_balance_running' flag sched/balancing: Change 'enum cpu_idle_type' to have more natural definitions sched/balancing: Change comment formatting to not overlap Git conflict marker lines sched/balancing: Fix comments (trying to) refer to NOHZ_BALANCE_KICK sched/balancing: Update run_rebalance_domains() comments sched/balancing: Vertically align the comments of 'struct sg_lb_stats' and 'struct sd_lb_stats' sched/balancing: Update comments in 'struct sg_lb_stats' and 'struct sd_lb_stats' sched/balancing: Rename run_rebalance_domains() => sched_balance_softirq() Shrikanth Hegde (1): sched/balancing: Remove reliance on 'enum cpu_idle_type' ordering when iterating [CPU_MAX_IDLE_TYPES] arrays in show_schedstat() Documentation/scheduler/sched-domains.rst | 2 +- Documentation/translations/zh_CN/scheduler/sched-domains.rst | 2 +- include/linux/sched/idle.h | 3 +- kernel/sched/fair.c | 108 +++++++++++++++++-------------- kernel/sched/stats.c | 3 +- 5 files changed, 65 insertions(+), 53 deletions(-) -- 2.40.1