Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp361204ybl; Wed, 11 Dec 2019 20:12:40 -0800 (PST) X-Google-Smtp-Source: APXvYqysfmn7pyipQ4CsbpPpNJF/FnloLh05WXvwYo6wPaVD9YqYWvdQdDvsNcRwHGTl3cNMrghg X-Received: by 2002:a05:6830:1b6d:: with SMTP id d13mr5920619ote.258.1576123960036; Wed, 11 Dec 2019 20:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576123960; cv=none; d=google.com; s=arc-20160816; b=xrmt0D8RcqdP5xEFqWpJaqv5Ng5axjbBdElz128rCXpcoppAf/eUfHkwaNxnQoz+GP aU08M4jR8Vc9xVz8G/NdyNhBi+vhgL0+SWyNfQpUcPvTik4WGfIhKPcRUz2SOz5bdtip prCtN6TPL9RE6gANQHcSXXwlpADoPB9hqUC6rB+IU06D8Sk/UJsbg15AM8ycdZifyfci XPaLfzWxS7yttVC3dYCQRGfFY58Ig/gkN+4nMeCgqWp3RmzEYTYfLIY5n75InfMtl78L RPXYOPUxR6Jt1GFyTezUR/qY7aqe8yu2rMfAaosKH8PSZhJOQUfUyiudOnY9Tz3wcIvY Csdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=LZQF+cj5Bhxi0fnKlCZLhWKPYoA+2wvT9NUU/aNTlDY=; b=iZ6VSHTcWWZR4e1YOdktTCtI2C9OW9B5oMt0zOc20CjtPR993LIg57jzB+U8IVul78 Oh8vhPzx1uCZyksa/DM9L9B1HDj743CIdi6YNzrh7RYlabvHnpqdoeQCtpFVFImuY/os Be8XpOCsfMGpHkHp9LzDKQAWlq+RauVLCCNRg02ZFMao2YgZvtuGEshZiPbth2q6Dvzx h+LLUXxjqO4PzJp4WIQHihPQVi2hZMYzjOmkY8hqdpyBMFssPCOfnf4Ghx1WGWx4C1pi CGxSZeL746lYZTnerTBATercd+bli6V3BF0Bl3G5hSAIjJ2k3TBPBNNySzdPVdXDXWYn n3pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cZ5wPiQg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s139si2329257oih.17.2019.12.11.20.12.27; Wed, 11 Dec 2019 20:12:40 -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=pass header.i=@linaro.org header.s=google header.b=cZ5wPiQg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727908AbfLLELz (ORCPT + 99 others); Wed, 11 Dec 2019 23:11:55 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:34222 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbfLLELy (ORCPT ); Wed, 11 Dec 2019 23:11:54 -0500 Received: by mail-qk1-f194.google.com with SMTP id d202so549028qkb.1 for ; Wed, 11 Dec 2019 20:11:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LZQF+cj5Bhxi0fnKlCZLhWKPYoA+2wvT9NUU/aNTlDY=; b=cZ5wPiQg+y190GfRUdHxHfr45yDlULDc+9gI0ExsfvWfblHgptSgKSVJAQTST1WZ9H cvrmmq1s3R58rGA3H/JzHXAQweX4kpdOrOBQbGLyOZlpNtLzTOLUyq/B4jNukqqMlJq8 /+g6BeaVhxGzA6pIiiIvv/kEkPew/Uykzeqq2Wy0L1iPbd4LfXaeSSKTMNpqU+9mKy22 apevOxfODbGBUHCKxSZKv3EXV36mN8sWMYuVodf0gi/RrmHQ/ZFNs4xXvJgt0vI6r8+e WUo0s5ZYOiRnxHlcQRG8tyKkdABID6J2DI1YGhTDOhvMUnJtYAksegkpPpYI5uaVQh89 o70A== 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:in-reply-to :references; bh=LZQF+cj5Bhxi0fnKlCZLhWKPYoA+2wvT9NUU/aNTlDY=; b=osNOuh/StkiteKu205G5X7hZA0S9xKRdTgW42a4cMOsz3bj/3SUtPt1/nYPSDsvmgb B2+H02Q6OoUFX6Fk47LRWrdbwt1eUKJHxfmfK/WoIf4SxYvovI9HNOcCNQ24malZwd17 FkDuzuvUv/0MJFKpEZ18rFarcY/VZm72fdOKlueGbD6dFZb177fGozwEMir77eUgPd/O vu1oarJAW1JGi/laEH9TbtaQFAl6KNzuDEgyFoN5WQuBWDNIEKihaRGcETo7NsGEza1L WAYPbLu3aNs1NgbdFuJV0hmVYa0ci8i0WySF1d8V7vw7585yQqUmCuCquOTBRdUKaykZ wSnQ== X-Gm-Message-State: APjAAAUnYPPCD0xly484SCgkKf2R2XT3FTckh0lUg6O2UjW/OO9GiFW9 FftP3goqjfeTPaGOrUgsyXJf/Q== X-Received: by 2002:a37:4943:: with SMTP id w64mr6275611qka.300.1576123913015; Wed, 11 Dec 2019 20:11:53 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id s11sm1364126qkg.99.2019.12.11.20.11.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Dec 2019 20:11:52 -0800 (PST) From: Thara Gopinath To: mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com Subject: [Patch v6 2/7] sched: Add hook to read per cpu thermal pressure. Date: Wed, 11 Dec 2019 23:11:43 -0500 Message-Id: <1576123908-12105-3-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1576123908-12105-1-git-send-email-thara.gopinath@linaro.org> References: <1576123908-12105-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce arch_scale_thermal_capacity to retrieve per cpu thermal pressure. Signed-off-by: Thara Gopinath --- include/linux/sched/topology.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163..f1e22f9 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -225,6 +225,14 @@ unsigned long arch_scale_cpu_capacity(int cpu) } #endif +#ifndef arch_scale_thermal_capacity +static __always_inline +unsigned long arch_scale_thermal_capacity(int cpu) +{ + return 0; +} +#endif + static inline int task_node(const struct task_struct *p) { return cpu_to_node(task_cpu(p)); -- 2.1.4