Skip to contentSkip to conversation

sched/fair: Make capacity_margin static

PATCH New Muchun Song 1 participant 1 message Nov 8, 2018 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/fair: Make capacity_margin static

The variable capacity_margin local to the source and do not need to be in global scope, so make it static.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index 340a2d8d49cb..f622fc858d7a 100644
@@ -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)
 {
Signature · 1 line
2.17.1