Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4057777imu; Mon, 24 Dec 2018 14:46:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN6lHloENqQiyIgYnOkwMIyGvF9GwpS+SMcLbxqaO5gawfzgNaSVxCULCzyyGUs4YlrJJzxS X-Received: by 2002:a63:2586:: with SMTP id l128mr14022161pgl.104.1545691579899; Mon, 24 Dec 2018 14:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545691579; cv=none; d=google.com; s=arc-20160816; b=H1G1XAYgInXT31+ECmN7uvgaT2O0U2B4HCN6HP4B2LAcsf7TNCPf5f9qvnsCgwvv3n 6++ocO8jKwoobIQSW2YD5yX6Zl3WpVk+mv9ENjtYjhxZ0c5Si+RdIp4Q7G5tEXXt3+sY D1jylucIdjRUAX2T5gRW4YHSab2esAXIKK/Rqe0WCWR4WJPc0XwcvPwXgsTh60hHvfVk HnqRScmIycKaQFLcul/DCNYvSYHsBitCnyFtCKQpUJVNNovqYsGK4StvKsFa+F3fSJsQ 4u9O/XRSVIoib7dleTY0GE9zdfWHGXmajrYHNr4KCm4T/fxj0RHDsggzcWZ16piNjiQI HosA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=gl6Y/elZ4BndNa/PvtotNl3UENnbeY0A1lVsqYcHJCw=; b=e8C6QQ4XE+gpoMqgnEVNhIfGvZ8Tj3jfuQ7DoBikYgSVxmaS3S/JTpqbqzKG6/tt2U wafETKX9LHrpsvCUsGHO9dIGeLsHce/lUqEOL86lX1Ob7rAcLypOoNWHk6K7nEQPeBJb /zJLm5BfCHCgfulzKG0TQJUu6JhN1kTx+n7p07mATOO2ktQAE/zYRvlrOF+LPS/a2AU2 yNrN/bP2OtkAKwxL39s8VP0K6Xxi0vYOefWul+CXbpoao4m11oNWZo186qQA7dn+y9Mz oYi2/Wk5gPAnoY+OKyXhlYk/xqg9JX63my7MY8Y7osk0u/EYKPpqkg3zPv7B+Q6+w81p hnWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bRja+VhP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si9495004pfn.111.2018.12.24.14.46.04; Mon, 24 Dec 2018 14:46:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bRja+VhP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725826AbeLXWpP (ORCPT + 99 others); Mon, 24 Dec 2018 17:45:15 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35508 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbeLXWpO (ORCPT ); Mon, 24 Dec 2018 17:45:14 -0500 Received: by mail-wr1-f65.google.com with SMTP id 96so12609670wrb.2 for ; Mon, 24 Dec 2018 14:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=gl6Y/elZ4BndNa/PvtotNl3UENnbeY0A1lVsqYcHJCw=; b=bRja+VhP20G5wgOIpDuIta7yRzmJbOrwX3TpF5Fy4Lh4NQDQwdNvHHmA46qDIHPY85 kQtCgBOEqO+2+GExZZqfdUgslyeVpgfWqONdxOcnaQIhSqUDAT2GdqTD1fMLxbNpb87g RzSXnGZWpRR/uBn9ueUbqSaYxTFizZGCzmZYCSjVIIuRdijjABxQC0QtlcGoS10ZxPiB VXiTvk90R8ZV1Hm2/7RC1xl0ouY9Jekgq//eelKu9txXI351ZSuGSjuIkez8H6Xon2N+ YmOJf7GPknQfM40ebgn5ybP8KE6q9PZYJdNbx7CeaSwIPd35P9220skpWjnffZbvB2YM iDTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition:user-agent; bh=gl6Y/elZ4BndNa/PvtotNl3UENnbeY0A1lVsqYcHJCw=; b=nIlzTPnA8ZcZrCUUtY4XJ6JTVidrvDh+mIfSWBZQnXLGM5jx3LLLbCMgFrmuSymMt5 GfSiL4CxYEiAYrwFUHelbod8bXHbRUoRjtls+SCp0yPiWRLZapqPo3dnIKDB3q9JFF62 TPNBhg1wTufNZW2fWOnyPpaY1GKMap30y5Cpm0Q/CUVEZf+N2vObYJeYetL9b3CwgHTg YkLQ+gMeE0Wd9fmdMzRfo6awxKhmXorTdrGLXxSpNB5xJt5LxyzLSO+mHIdRhKVhl21Q DgEky9l7gg+IzCDpYolCc4Q5hWVYSX2GRh1w+xRE/BAHO4PIgIBr83svklTDEbBy3qnM VrPg== X-Gm-Message-State: AJcUukc7bH09DBe2BCSE7SRDs1l069dbLVqM8A+va95LDJpYcvC2RK/k yIuEK8VDgL7bjS21huhhoMo= X-Received: by 2002:adf:b3c3:: with SMTP id x3mr13195397wrd.294.1545691512523; Mon, 24 Dec 2018 14:45:12 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id d16sm16206675wru.52.2018.12.24.14.45.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 14:45:11 -0800 (PST) Date: Mon, 24 Dec 2018 23:45:09 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Andrew Morton Subject: [GIT PULL] scheduler changes for v4.21 Message-ID: <20181224224509.GA67077@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: 732cd75b8c920d3727e69957b14faa7c2d7c3b75 sched/fair: Select an energy-efficient CPU on task wake-up The main changes in this cycle were: - Introduce "Energy Aware Scheduling" - by Quentin Perret. This is a coherent topology description of CPUs in cooperation with the PM subsystem, with the goal to schedule more energy-efficiently on assymetric SMP platform - such as waking up tasks to the more energy-efficient CPUs first, as long as the system isn't oversubscribed. For details of the design, see: https://marc.info/?l=linux-kernel&m=153243513908731&w=2 - Misc cleanups and smaller enhancements. Thanks, Ingo ------------------> Ingo Molnar (1): sched: Fix various typos in comments Morten Rasmussen (1): sched/fair: Add over-utilization/tipping point indicator Muchun Song (2): sched/core: Introduce set_next_task() helper for better code readability sched/fair: Make some variables static Patrick Bellasi (2): sched/fair: Mask UTIL_AVG_UNCHANGED usages sched/fair: Add lsub_positive() and use it consistently Quentin Perret (11): sched/topology: Relocate arch_scale_cpu_capacity() to the internal header sched/cpufreq: Prepare schedutil for Energy Aware Scheduling PM: Introduce an Energy Model management framework sched/topology: Reference the Energy Model of CPUs when available sched/topology: Add lowest CPU asymmetry sched_domain level pointer sched/topology: Disable EAS on inappropriate platforms sched/topology: Make Energy Aware Scheduling depend on schedutil sched/toplogy: Introduce the 'sched_energy_present' static key sched/fair: Clean-up update_sg_lb_stats parameters sched/fair: Introduce an energy estimation helper function sched/fair: Select an energy-efficient CPU on task wake-up Valentin Schneider (2): sched/fair: Clean up load_balance() condition sched/fair: Don't increase sd->balance_interval on newidle balance Vincent Guittot (1): sched/topology: Remove the ::smt_gain field from 'struct sched_domain' Viresh Kumar (2): sched/core: Create task_has_idle_policy() helper sched/core: Clean up the #ifdef block in add_nr_running() Yangtao Li (1): sched/core: Remove unnecessary unlikely() in push_*_task() drivers/cpufreq/cpufreq.c | 1 + include/linux/cpufreq.h | 8 + include/linux/energy_model.h | 187 +++++++++++++++++++ include/linux/sched.h | 4 +- include/linux/sched/cpufreq.h | 6 + include/linux/sched/isolation.h | 4 +- include/linux/sched/mm.h | 2 +- include/linux/sched/stat.h | 2 +- include/linux/sched/topology.h | 17 +- kernel/power/Kconfig | 15 ++ kernel/power/Makefile | 2 + kernel/power/energy_model.c | 201 ++++++++++++++++++++ kernel/sched/core.c | 6 +- kernel/sched/cpufreq_schedutil.c | 90 +++++++-- kernel/sched/cputime.c | 2 +- kernel/sched/deadline.c | 25 ++- kernel/sched/debug.c | 2 +- kernel/sched/fair.c | 385 +++++++++++++++++++++++++++++++++------ kernel/sched/isolation.c | 14 +- kernel/sched/rt.c | 28 ++- kernel/sched/sched.h | 97 +++++++--- kernel/sched/topology.c | 231 ++++++++++++++++++++++- 22 files changed, 1179 insertions(+), 150 deletions(-) create mode 100644 include/linux/energy_model.h create mode 100644 kernel/power/energy_model.c