Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1923286ybj; Wed, 6 May 2020 07:41:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIc7efF5nXPmCHqJOQ/HqO7L/+WJ2TUSa1hV5jwTaqvXNqUv11rWJwn+cvh33rVqA8vMQ/2 X-Received: by 2002:a17:906:af99:: with SMTP id mj25mr7534231ejb.151.1588776113925; Wed, 06 May 2020 07:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588776113; cv=none; d=google.com; s=arc-20160816; b=dNflpoYcCddPIY4YZVWN4eLzXkSyy9QmCckp3BOHCKUAfrAdbkMedhf/D+8RJACumL Q5ebo/BWxL/CgeXpdW5IQpNLUy0wRwlOROE1OLdzN4WeV+S0bJlxS6SYVz7DEfQ3s9Tm ipaAdZQ9kdjMlL1WcC/Fc3cQ3zaJWtB0Givvc1tDsmqr1Y2ZdP+SMnEMsFYjHE2s1FSa 6kp/u8rUkYQMaQI8l1UbyxCMccD83elY6IShfSx9cQYJLn7suvONRkq8wR4ArmPTiTNm tvFDml885IB5JbXV7GQQ6InwxpoXPq+v7pC2c4Zj9L+Q0qoE+GWIqhXllugVYvM8yJPF kC2Q== 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=d1/xG5dqhlwWc5rbz1CW+9PYc2c8GDV/QXEqpAy4DqA=; b=cDbYAhclkQPelkHvIo5E19cMSqWlLoZu9jff01tWfH+r1ep6W3yVYmMk4vxcKG1aac vdq6IeQ5bzng8++bbGPmDZyw+5bFjhbLpYwDkPo5Hez1e3CuupAmZI0SvCrpthC7k6y5 /s11biFMukcCIDE+uV6QDRDFw0PLyaEJi79BO3s8yVt7kIu5r8XDvFxkXRrdYd5oZFcs WqYOTcRvrQgaJQVTLg6WbbxDACPNuLp6lCK9unirXeey70cMXelcFr+e5jzv+UKTSnGy LDHUr9YgteU33wHWljnf1A8NTIfovCDYXZOhQ0rIZJ7gLuSRqp1xZre+F+AMO1e6rLwm b0RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=zlOglc4W; 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 k7si1226124eji.41.2020.05.06.07.41.29; Wed, 06 May 2020 07:41:53 -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=zlOglc4W; 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 S1729035AbgEFOkB (ORCPT + 99 others); Wed, 6 May 2020 10:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgEFOkB (ORCPT ); Wed, 6 May 2020 10:40:01 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B722EC061A10 for ; Wed, 6 May 2020 07:40:00 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id f11so2655180ljp.1 for ; Wed, 06 May 2020 07:40:00 -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=d1/xG5dqhlwWc5rbz1CW+9PYc2c8GDV/QXEqpAy4DqA=; b=zlOglc4W8Lo1zP6l+SElnBShjGZba+3A2KUR/0XsTPgSBv0gQKyWskaFYAra/dYlBO P/HpknJmeM1596PcgzEv28IjgU5qmcoQTyKmfNNjwd5Gun+f9J7JXa1DWS/0ruO3XaC/ 7jClgwfiCgvopEEIATejf/IL8PC7vHjlDd0JtLP97YWBQOkkH+6pqoOb97oK0n95a5FR 669Oy1Sy83dwKO3JHT7fkh+20RKj5N2ogMHAYVQ60xd3csDI7WEcm3bEBlj3nOCVFjPm eqSxpcAoDzsuRN+0YmeQkWpT/DOcsd56uJbIc7JJl+ediIt+XtokYR40UaRPIUsSamQz KnNw== 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=d1/xG5dqhlwWc5rbz1CW+9PYc2c8GDV/QXEqpAy4DqA=; b=ZO/Hqv6cjP63zGX4is0NesLjojqdxfN+c7kcBDuKPkj1ozR/nn5aFG7SIphWvU0u/J SbISeh9azGrIhE4DBE+gQYCt3B4I1TKkCqsCgnoDh1otaln1h1PgD0nz2eN7dG6U/3YN tPjbEDI3dNOpaM1+soCILDmX61Szx4tCNvH9GwT28+BjI+68sZqutU/EQHLJqCS4Ha83 hqoww54Pc9lzDumlg5UHJ5iP5T0U9hG8m5Pylg/a1BBh1TQlvHmNXu77S07w/xyMmTzp JvqoM9aVt/BzZ0uCfA/cyzU9BNTa00pXUmh4BIw2OQvl3YDpoXzJNvXUYh6DtRBfRxqv D5gg== X-Gm-Message-State: AGi0Pua5DEYY7BNoZYLSKfeBl0fOWVgIXsezrZUHNDi3QqSThZpYhOvO MPQ5+20X9RiXQyJkDXKJI/B5gQ== X-Received: by 2002:a2e:8046:: with SMTP id p6mr5006664ljg.21.1588775999065; Wed, 06 May 2020 07:39:59 -0700 (PDT) Received: from localhost.localdomain ([109.204.235.119]) by smtp.googlemail.com with ESMTPSA id c2sm1784178lfb.43.2020.05.06.07.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 07:39:58 -0700 (PDT) From: john mathew X-Google-Original-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@gmail.com, oleg.tsymbal@unikie.com, willy@infradead.org, valentin.schneider@arm.com, john mathew Subject: [RFC PATCH v2 0/3] Add scheduler overview documentation Date: Wed, 6 May 2020 17:39:28 +0300 Message-Id: <20200506143931.23387-1-John.Mathew@partner.bmw.de> 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. First version of this patch series was reviewed at Link: https://lore.kernel.org/lkml/20200401100029.1445-1-john.mathew@unikie.com/ 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 - Added kernel-doc comments for struct rq - Mention SCHED_DEADLINE and add pointer to sched-deadline.txt 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 | 110 +++++++ Documentation/scheduler/context-switching.rst | 126 ++++++++ Documentation/scheduler/index.rst | 33 ++- .../scheduler/mips-context-switch.rst | 88 ++++++ Documentation/scheduler/overview.rst | 274 ++++++++++++++++++ .../scheduler/sched-data-structs.rst | 253 ++++++++++++++++ Documentation/scheduler/sched-debugging.rst | 14 + Documentation/scheduler/sched-features.rst | 20 ++ Documentation/scheduler/scheduler-api.rst | 30 ++ .../scheduler/x86-context-switch.rst | 65 +++++ kernel/sched/core.c | 28 +- kernel/sched/sched.h | 169 ++++++++++- 13 files changed, 1204 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