* [PATCH] sched/fair: Make capacity_margin static
@ 2018-11-08 16:11 Muchun Song
0 siblings, 0 replies; only message in thread
From: Muchun Song @ 2018-11-08 16:11 UTC (permalink / raw)
To: mingo, peterz; +Cc: linux-kernel
The variable capacity_margin local to the source and do not
need to be in global scope, so make it static.
Signed-off-by: Muchun Song <smuchun@gmail.com>
---
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 340a2d8d49cb..f622fc858d7a 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -116,7 +116,7 @@ unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL;
*
* (default: ~20%)
*/
-unsigned int capacity_margin = 1280;
+static unsigned int capacity_margin = 1280;
static inline void update_load_add(struct load_weight *lw, unsigned long inc)
{
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-08 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 16:11 [PATCH] sched/fair: Make capacity_margin static Muchun Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).