Message ID | 1506121484-8260-1-git-send-email-leo.yan@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp63585qgf; Fri, 22 Sep 2017 16:05:18 -0700 (PDT) X-Received: by 10.84.129.226 with SMTP id b89mr563110plb.78.1506121518510; Fri, 22 Sep 2017 16:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506121518; cv=none; d=google.com; s=arc-20160816; b=sRgQ2cmdPX0PUtKDcAVFNNMjbAjIH7vMeH3UqVZ654kFLUSt8bM4iS0oQdDC+o6Rvm v15dWCmzAH5R6LdqAIQR7DrqmageiUM8FQ/dgQ6xRxOadHO4VBcNAMYdXP59G4mVkw4m ZgreNpIqAZBzkRQhp0Prek3fiAlhmpNNi3litVQkB8WnN5lI24DhTeWBAaMNMXsqyzM5 a+afCcyM+lVsnD5ISgdJVMavr2oLV0f6DrZBvw3gCjPVsR/Xv//hTX527YQ3HD1bYxFE BewkNPXlwGzvQ6N5MTurN1Z5HrXWJm3xiSXWC9j6KU5XclpTi2HDrkk6t+d5JvsEsgRP Wp2g== 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:arc-authentication-results; bh=sZNzzyri0UL1EwevaOr3+AlrWVfOqR/sYtLVVWUgHXo=; b=cj6bH3XD+wDjuvt3cFuD/WA2lX8XyYaxK6QvUqZEZ+l9UAoWEjWA1oNIFrI/6sb7mg RzgxuliTm8deK6vhVsNVsenrPNDriacG/M4QdTRDrXaDxowMNXBVNOP1Lb8/Hqh/IQeb 4zgfcsEFdQK0+zC18Gc2Yqduj9FDKeDn2JFuS3FGZb225lDOPHkb0siQCBpQ1NUFcDiC s7SUnLHn6C6JewVo81xQAEo9yS2COkEOXl/+QNakPr5v3C+57DvPYKNS0Oty9kruvY7I O7WImiln4by2htC6l4h5nUS5Vh36zKBeLvso3Q6MTp1dK7kSYq87yPCvx4cXtXv9EB+/ CYOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cKUxYSoB; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q69si463417pfj.457.2017.09.22.16.05.18; Fri, 22 Sep 2017 16:05:18 -0700 (PDT) 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=cKUxYSoB; 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 S1752214AbdIVXFQ (ORCPT <rfc822;daniel.diaz@linaro.org> + 26 others); Fri, 22 Sep 2017 19:05:16 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:49768 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751763AbdIVXFO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Sep 2017 19:05:14 -0400 Received: by mail-pf0-f172.google.com with SMTP id l188so1219293pfc.6 for <linux-kernel@vger.kernel.org>; Fri, 22 Sep 2017 16:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=sZNzzyri0UL1EwevaOr3+AlrWVfOqR/sYtLVVWUgHXo=; b=cKUxYSoBCQfVpRSQAzpdzz0vLMro/fc5E0WnwYfysQmc2tYXWx7j9ne/DE+DJjwYYf 0FgsH1GUQW/72FQUksCQNGqWIBRDubgqF5LxFRQuTT6UZjEcx2W3Dzel4HSmgkANH9h8 YSNzb87jyJoUmGTf7LmqsA4QjP5LhS1VIAgRw= 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=sZNzzyri0UL1EwevaOr3+AlrWVfOqR/sYtLVVWUgHXo=; b=eWcmOj9Q08kLaIF+tZe3a7zGVmU0Tn8KeljK9Q+72ISI55is+BYUqnCAxL7QNGQn1i LWdseZPLcQhgMsBLXggLzD+OxZNwcPSrxYtiESp1S0l/0pV0e0h8Rn9AhZUH1kmLHPxK 6Onlk9jClfZe1EmXzv016ybo89QP1nJKFvlpuRXWIl6kMQoPU8rDfbqvOU9gg/bIdZOc 6CC0ZZ6FDk2/M3+4CFlQlu5Y5uBiY2wBZLQVMaHW5eCFZ8pkjwWcBsr6bZ4ast25b1R/ 8iWo1/T3M/YMLzgQAWh9ufiD8PwHhTlQg9fQYCVWEAGqvSVKneF4rxcg1x309msq74rF JtUQ== X-Gm-Message-State: AHPjjUj9xAv4/K4NlPUjlzfsAc7Vy6XHzN11w9b8rVOd9uqCgh+97/0h fSO6FTmL6v8c6OvEtguFBq/FUi+fUXw= X-Google-Smtp-Source: AOwi7QDpD59p3blQWQP5ToECEv5Psh37GzI3r10TB+l1UbmevsekFjfRnzmrqbdDLywS7UhNCSGycg== X-Received: by 10.99.1.81 with SMTP id 78mr533138pgb.99.1506121514348; Fri, 22 Sep 2017 16:05:14 -0700 (PDT) Received: from localhost.localdomain (c-69-181-16-182.hsd1.ca.comcast.net. [69.181.16.182]) by smtp.gmail.com with ESMTPSA id h9sm1049584pfh.98.2017.09.22.16.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 16:05:12 -0700 (PDT) From: Leo Yan <leo.yan@linaro.org> To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, linux-kernel@vger.kernel.org Cc: Leo Yan <leo.yan@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Morten Rasmussen <morten.rasmussen@arm.com>, Chris Redpath <Chris.Redpath@arm.com>, Joel Fernandes <joelaf@google.com>, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 1/2] sched/fair: make capacity_margin __read_mostly Date: Sat, 23 Sep 2017 07:04:43 +0800 Message-Id: <1506121484-8260-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[1/2] sched/fair: make capacity_margin __read_mostly
|
expand
|
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 70ba32e..ad03bf4 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -129,7 +129,7 @@ unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL; * * (default: ~20%) */ -unsigned int capacity_margin = 1280; +unsigned int capacity_margin __read_mostly = 1280; static inline void update_load_add(struct load_weight *lw, unsigned long inc) {
Variable 'capacity_margin' is used with read operation for most cases to calculate the capacity margin, put it into __read_mostly section. Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Morten Rasmussen <morten.rasmussen@arm.com> Cc: Chris Redpath <Chris.Redpath@arm.com> Cc: Joel Fernandes <joelaf@google.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Leo Yan <leo.yan@linaro.org> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4