Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp947360ybj; Thu, 7 May 2020 11:08:55 -0700 (PDT) X-Google-Smtp-Source: APiQypI/3IeTqqOG5rEftXQpmU6BD+ZItnF1Y1mevzOmNTUEdOvMVFokIXIpEbI2ACzlOWZEIj71 X-Received: by 2002:a05:6402:2d5:: with SMTP id b21mr12615454edx.291.1588874935755; Thu, 07 May 2020 11:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588874935; cv=none; d=google.com; s=arc-20160816; b=aVwdS1Ier4U1ARanvvqdEmd0FrDgXlazbvzC7/wQzgqK5yfdlKgEsllQkSqPkTURaz YF+behc5r9ZTXutyRcIszNzNmKBi97ivGKvw2kbx20gLdBo4JXCSpjh+atyscmNp7ezV LMXQAZ5uznJWTCMBcqu8tCLCmVIgTQjc11Uc5ZthHP2ezhrsGchmKm69iirH/rU0pJG7 ypEkQ2Nwln59aEQRnXdY2D2Ca8Mr7a8Ph07HidAOzqMQmLx69kT0oz6tkOw8xVkIMoKy YQwxD458HiAbo00hRjXnpRafs16m6+0N2scxNeFtPxNEU9A0jGNmAOs2tpr5L5KgaKrV O6GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=uPvUkFT01w2TDYWgbcI7ufjq3faBUrMBaYiJbDvssNE=; b=AWVhL9ikvHE8cJKgGxy4uHNopiOMjh/Q6x/Mfiga8jC5eLxOFrDgFzIQRnysHD5r+O QYT0pA/BBO7h+QLstX49EKWCvJiW+W3zEl2PeJMPe6Lpjob1ahrinOBNZiwt0UX4VOLi 0ih+KRENjutEK4LRIvW2IulXOCYmV+SSjHe0tYOkkQDzJJN7oryEgcBZyyboHIUHbH2H vHxSrj6pizGk2DM++cWJxLEGHSET1ccEKBqFbaBLypQuGOWROSh+cdZX/UlHnj+mSDfR kNjVtb/eK5173+j9BBTZxa8wLOSSTG07xPUHGQ9RbJHhArbLTTlRaTqf36kO7uoOG1FL Gd4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=iR2ssMXC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si3503681ejn.277.2020.05.07.11.08.31; Thu, 07 May 2020 11:08:55 -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; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=iR2ssMXC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728276AbgEGSGJ (ORCPT + 99 others); Thu, 7 May 2020 14:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726367AbgEGSGI (ORCPT ); Thu, 7 May 2020 14:06:08 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38A1EC05BD43 for ; Thu, 7 May 2020 11:06:08 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id a4so5266524lfh.12 for ; Thu, 07 May 2020 11:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=uPvUkFT01w2TDYWgbcI7ufjq3faBUrMBaYiJbDvssNE=; b=iR2ssMXC/ymlyFfbbDiNpySrdnRo65etLifVTjA1sILNi21+i+/w1pVDIiYP8PDwN0 Y8/5pexTjm9m2vEb10yLbpWNr+dt1DPUFPYhtdJRH3Cpso/Y2fwo6h3dmsyl+5OSG2pj UgjhDs1ea2d/fTmTYWLBQUmENy58rhFSIkJ7EsScFGyNEIerdsUZOMWXi9JPzEW4j/ZZ kn5zVDGxyLwh3TiGCKys3xX2QtgFmyv6+OCEjxDgvYTENyzjXi3P1AtdLJxeYRRvZBSX nvWftHxqhv4aCDQSuMum5SEVavGonpAA1arUvNOtD7HO9pKwL9eWzkZltGzLYtCH0/W6 9yjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uPvUkFT01w2TDYWgbcI7ufjq3faBUrMBaYiJbDvssNE=; b=Jw/TOEQCRZY+PeWWpZ0JPTGJmZtzC7lVXISTO1zNDMfO+ik8ceM+Mc4dGIFeHEjueu Mj3WgAUiGvpJb2aHFxz1g2XAJwAabQDrtyrbOOB5LaHmYyL2rUwSbjDcpFsXFN5koT0O 6bAnyci3xsVRNibMFoOvBL/kfVUnX29O5tmgaah4BS7wRNExIR32JkYEgmSt5z1M67y5 nCFtfqNqCaop4Ci6cyf/S7onkM85vKAmOwJcqZR5VjEctZYQfLYx3vi4DpRs46grPcul JYWqHr4306kgD3+aohZ5mso1sDR/e5L/nAfmuPkzzNOFWRkpZdgoxbTHZdq7dy6zms2B Bo8Q== X-Gm-Message-State: AOAM530GK4Of0hqc4iq8xjm2SNe9eRtrLMDAL03Ju2OXFuE3zLoowzIV vUsNuZd/TFAYeh+Eeh/ejyvfMA== X-Received: by 2002:a19:cc07:: with SMTP id c7mr2367026lfg.163.1588874766524; Thu, 07 May 2020 11:06:06 -0700 (PDT) Received: from localhost.localdomain (84-253-205-124.bb.dnainternet.fi. [84.253.205.124]) by smtp.googlemail.com with ESMTPSA id w21sm3715392lji.26.2020.05.07.11.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 11:06:05 -0700 (PDT) From: John Mathew To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, corbet@lwn.net, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, tsbogend@alpha.franken.de, lukas.bulwahn@gmail.com, x86@kernel.org, linux-mips@vger.kernel.org, tglx@linutronix.de, mostafa.chamanara@basemark.com, rdunlap@infradead.org, John Mathew Subject: [RFC PATCH v3 0/3] Add scheduler overview documentation Date: Thu, 7 May 2020 21:05:50 +0300 Message-Id: <20200507180553.9993-1-john.mathew@unikie.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series updates the scheduler documentation to add more topics wrt to scheduler overview. New sections are added to provide a brief overview of the kernel structs used by the scheduler, scheduler invocation and context switch. The previous version was reviewed at Link: https://lkml.org/lkml/2020/5/6/630 version 3: Fix spelling, spacing and typo errors. version 2: - Remove :c:func: directive as it was redundant - Limit document width (line symbol count) to 75 - Replace dot file with ASCII art - Describe prepare_task_switch(), ASID use, kernel/user transtion, MIPS FPU affinity correctly - Add missing references to files - Removed internal APIs from scheduler API reference - Described rq struct member as kernel-doc comments - Replaced CFS history with CFS current status - Added documentation for sched_class fields - Refined explanation of context swtich functionality - Replace CFS history with recent changes - Added kernel-doc comments for struct rq John Mathew (3): docs: scheduler: Restructure scheduler documentation. docs: scheduler: Add scheduler overview documentation docs: scheduler: Add introduction to scheduler context-switch Documentation/scheduler/arch-specific.rst | 14 + Documentation/scheduler/cfs-overview.rst | 113 ++++++++ Documentation/scheduler/context-switching.rst | 125 ++++++++ Documentation/scheduler/index.rst | 33 ++- .../scheduler/mips-context-switch.rst | 89 ++++++ Documentation/scheduler/overview.rst | 271 ++++++++++++++++++ .../scheduler/sched-data-structs.rst | 253 ++++++++++++++++ Documentation/scheduler/sched-debugging.rst | 14 + Documentation/scheduler/sched-features.rst | 20 ++ Documentation/scheduler/scheduler-api.rst | 31 ++ .../scheduler/x86-context-switch.rst | 65 +++++ kernel/sched/core.c | 28 +- kernel/sched/sched.h | 169 ++++++++++- 13 files changed, 1205 insertions(+), 20 deletions(-) create mode 100644 Documentation/scheduler/arch-specific.rst create mode 100644 Documentation/scheduler/cfs-overview.rst create mode 100644 Documentation/scheduler/context-switching.rst create mode 100644 Documentation/scheduler/mips-context-switch.rst create mode 100644 Documentation/scheduler/overview.rst create mode 100644 Documentation/scheduler/sched-data-structs.rst create mode 100644 Documentation/scheduler/sched-debugging.rst create mode 100644 Documentation/scheduler/sched-features.rst create mode 100644 Documentation/scheduler/scheduler-api.rst create mode 100644 Documentation/scheduler/x86-context-switch.rst -- 2.17.1