Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp745423lqe; Sun, 7 Apr 2024 01:44:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJp7S32uNxk25IGvTDUQYDQLLnSIQIbJEfYIiCKwQ2fm6552fWjJLhO8JArMyEfP93GAU/Qok/1MqhZueJZRaeINKsBt//j4/N2a4UJg== X-Google-Smtp-Source: AGHT+IG86AzBhTXyLcsbj6NeQ6sL7adwPHfUu6PgpCV44uYir5OL+BsdSqi7UymeZaj3knpAVGnC X-Received: by 2002:a05:6a00:1a8f:b0:6ea:ab48:5dd9 with SMTP id e15-20020a056a001a8f00b006eaab485dd9mr6142123pfv.6.1712479439981; Sun, 07 Apr 2024 01:43:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712479439; cv=pass; d=google.com; s=arc-20160816; b=Yj7B/ubERH4eqr+6wz9AWstqepuUNOgD0+OkZwtwhPrDiDEkZHTinfQ+2BLBYKKdN1 rUvNlGNi32EXuZdXmr3EMF348baXmzCGLypbHsD+mOpCnNf3Stea7nXBl95liJQt3Gg4 GSe2syL9YAMEg5g3HeT6QwAXM5VeEUtl4DJX2vpJLDggr5a770HPfSPhi7d1T1GMmK8/ HBE8j6B4CayRWo0BAOYOxC3WyMQnF2svu0Iepzid1qmhnkNYa9RWhAKpvq1kXDqxV0tu pEX88j5V8I6e1Rs+quqaFy1IVhumJ75xN4lQenbaBAybTmVxOED3/6Hr6qBX8Agx7TIB IfSg== 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=ZSqrtmUuhyUZe9f/Zywq2SuZRFreiaDkWRjoQY0iyp8=; fh=JVlACkjbnggrna9YkqYzvTCwO6y3piWSDhIpHRs+l9o=; b=zZ/E5MCTh8gpM/sAUZL+Dmdb2Tmu5A6uI/q1UCkd9o0NWXSdlqehpe+X42mvJf+DV2 buCdzCL26twRoSJeFwxMl7W7fy4HvFQowksC71Fx/0VFQQccvsCkzOS6z1mjWkMWZ/mN DQJqmN95+Yrsn0eXMM93+Qbj7LKXSN59xhM+1FidxYE1m/TV1F7giMoMkl/GD82mzTC/ eu++MuhVdobigZolPru06NMQjBukNWOcudfzTNXDSmTSu6Z0lSqkPdfGjfnUw4yR34mj 8tBKGBRd0MYtPlcmb2x8/AW6VtLBJgQRid7P3lXRGsmArDQF4E8fejTG/2yxWva0icPA yLfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cx2c2flj; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134257-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y9-20020a62f249000000b006ed03e87dd2si3430983pfl.113.2024.04.07.01.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 01:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134257-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=Cx2c2flj; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134257-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E96AEB21A95 for ; Sun, 7 Apr 2024 08:43:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C470111AA; Sun, 7 Apr 2024 08:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Cx2c2flj" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 8BF2E748F for ; Sun, 7 Apr 2024 08:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712479426; cv=none; b=Czg4VKHOLsOr8EvvzqoGroa7JFfvOT9k67YdS0iB0guYhW8oqoS3+g6pCc/tWRT+SzopUsxxk8jVZ46XZcRWr7sgNWiV0Be2arqlg6QE0+FqTEPLKhTSsBNBKHb1odkhARZFO50WUprWJps7L+nKXOFWs5Xgy0SOrXfjod6XV54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712479426; c=relaxed/simple; bh=Pn/Aq1bf9UcR43Rcp9QKgliQ6+KsPGp/MB4IAgTnEDY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mSjYRP+Pmi5RTpfEJMxmbM5IZfaoWZxY/spVO/mntX5PS1BONW/RKvbqe36F2JhzV6Q+IcJAmKtU4JesW10zhQF8/FJabIRcnHPhIHoAojaTgvzoKXPjGqGVS1KV4cIxXVX4KiiN/BrcKUj0IH+/lZitm4m8jSFrerNJJRDxo8Q= 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=Cx2c2flj; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d718efedb2so61831271fa.0 for ; Sun, 07 Apr 2024 01:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712479423; x=1713084223; 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=ZSqrtmUuhyUZe9f/Zywq2SuZRFreiaDkWRjoQY0iyp8=; b=Cx2c2fljglr6C3IMPFkNuQ9QdJUJOY13yhss+2Tg8GzqBqQmia0hv2xPaVG05Wc6F5 y1uy025In6jeriOTyp9NDVgznIRELD2AwBvEQAS4AQk+QZGUfs40Z9ND7YqpXzH/B4zI sHU4cnBkfRo/uqUS6Zy5VqwpMKN+gprHn/1Mh9cpYNrgGiQAHjcYSXKu1I2IwjB4zQ/9 Np7dvPSqjLySmc+WOY39Z7CBvdjiQ6SFhEFwSDP/nDRhunCubF+1aPLeZyTWG455iven ZMeSWdI35/8P0evpYN2ZfWCotVCRarw/A42SUcL4h9YQacVvQuluIUT3OJTyfNN+4I6+ MOHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712479423; x=1713084223; 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=ZSqrtmUuhyUZe9f/Zywq2SuZRFreiaDkWRjoQY0iyp8=; b=M7dlYB9RZqOvctexldYJXKnVahAjY/uaOPs6cyt7KbFO4QJxP2W5SJ257OeYtBmg5j /4y5mofns7MBfi3ssXMgC1uFAdJHpt6B/iaCzfoHZqaH76WwRS7dd+t1TKmNpdO/5D2f vLpKbMEfJ1G5iWBXieYKp7nNqAZzjqGlT60GNvAUJTHB8yQGRcF2Nmwp5CZn9o+NQ0lQ P+VJVkmfsqxC885c6mk/4HFwy4OHvPT1+DTMDwOiqh9KeccoOyKoZSGjXok7aehMzNMA v7D0/Ags8vFS+9C2OXtsSG0omFb9EwmnAzRS4Vx7lcqhGc7ALD6E7nA9+RW0tveHx8G0 wj9g== X-Gm-Message-State: AOJu0YwDeoqRn0H0ufmuGPKh2CDylXGOfAzQMkf6F7wpDGr07VGpW4c1 PRZ62EsqCdqKxcjFMLyZW9BqHUcm4uc5fgTiwkb7IXxUNHQHekOC/rst0+AJJMA= X-Received: by 2002:a2e:7210:0:b0:2d4:49d1:38e with SMTP id n16-20020a2e7210000000b002d449d1038emr5746593ljc.28.1712479422465; Sun, 07 Apr 2024 01:43:42 -0700 (PDT) Received: from thule.. (84-236-113-28.pool.digikabel.hu. [84.236.113.28]) by smtp.gmail.com with ESMTPSA id d21-20020a170906c21500b00a4e28cacbddsm2891579ejz.57.2024.04.07.01.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 01:43:41 -0700 (PDT) Sender: Ingo Molnar From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Dietmar Eggemann , Linus Torvalds , Shrikanth Hegde , Valentin Schneider , Vincent Guittot Subject: [PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates Date: Sun, 7 Apr 2024 10:43:14 +0200 Message-Id: <20240407084319.1462211-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 kernel/sched/core.c and fair.c have become a hodgepodge of scheduler functionality that obscures core scheduling and fair-balancing class scheduling functionality quite a bit. Improve it all a bit by splitting syscall.c out of core.c, and fair_balance.c and numa_balancing.c out of fair.c: # of Lines of code BEFORE => AFTER --------------- kernel/sched/sched.h 3493 => 3891 kernel/sched/core.c 12067 => 10308 kernel/sched/syscalls.c - => 1691 kernel/sched/fair.c 13295 => 5707 kernel/sched/fair_balance.c - => 5103 kernel/sched/numa_balancing.c - => 2277 total 49650 => 49765 This is only a first-approximation split. Thanks, Ingo =================> Ingo Molnar (5): sched: Split out kernel/sched/syscalls.c from kernel/sched/core.c sched: Split out kernel/sched/fair_balance.c from kernel/sched/fair.c sched: Split out kernel/sched/numa_balancing.c from kernel/sched/fair.c sched/fair: Remove NEXT_BUDDY sched/fair: Rename set_next_buddy() to set_next_pick() kernel/sched/Makefile | 3 + kernel/sched/core.c | 1951 +-------- kernel/sched/fair.c | 13184 +++++++++++++----------------------------------------------- kernel/sched/fair_balance.c | 5103 +++++++++++++++++++++++ kernel/sched/features.h | 7 - kernel/sched/numa_balancing.c | 2277 +++++++++++ kernel/sched/sched.h | 400 +- kernel/sched/syscalls.c | 1691 ++++++++ 8 files changed, 12367 insertions(+), 12249 deletions(-) create mode 100644 kernel/sched/fair_balance.c create mode 100644 kernel/sched/numa_balancing.c create mode 100644 kernel/sched/syscalls.c -- 2.40.1