From patchwork Thu Dec 12 04:11:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 181428 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp393738ile; Wed, 11 Dec 2019 20:11:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzZZXTd/cwKFd0RLe2aQnB1YoueDnVQAHoM7K9frGl8r6ZhHIRoKLGgcuv9eFVLn84HBKul X-Received: by 2002:a9d:32e:: with SMTP id 43mr5776319otv.301.1576123917716; Wed, 11 Dec 2019 20:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576123917; cv=none; d=google.com; s=arc-20160816; b=QOdNRcP6iIivr8R6OpUBIQjbP38siEHFhRBTgEmSggGjyoYgoE0U4mybgmlitzzTu7 jxPbTj1E8LumrxLRP4rgbymKVvxRs5/vre/ylb9KYTPVvSNdh6ZyY+wamERFWrVt4kZO 9MGtH+MGqSVoR8UWBtZO9B7YFoOal3DrWsBQwokxj/ZIjsETNjFpGmsAmb2iaLEc1AdC pmlqGsYf5+o1EHs2D5Z++GjT2VeMrhFCT3vvX+EQX6pn/vQcapbhVd9VcdFBvDLHtDxc fN9E15Pl8IgfcziIZh+ETe/DgtKO85R2DfX21xv+C04xHv3c/4ayPxZdQnapbuWC8xZA X8vg== 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 y186si2424408oig.241.2019.12.11.20.11.57; Wed, 11 Dec 2019 20:11:57 -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 S1727922AbfLLELz (ORCPT + 27 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(+) -- 2.1.4 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));