The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 1/2] sched/fair: make capacity_margin __read_mostly
@ 2017-10-02  0:30 Leo Yan
  2017-10-02  0:30 ` [PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation Leo Yan
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Yan @ 2017-10-02  0:30 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, linux-kernel
  Cc: Leo Yan, Dietmar Eggemann, Morten Rasmussen, Chris Redpath,
	Joel Fernandes, Vincent Guittot, Patrick Bellasi

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>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-02 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-02  0:30 [PATCH v2 1/2] sched/fair: make capacity_margin __read_mostly Leo Yan
2017-10-02  0:30 ` [PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation Leo Yan
2017-10-02  1:02   ` Joel Fernandes
2017-10-02 11:13     ` Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox