All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] static and __initdata symbols in credit2
@ 2015-01-14 15:11 Uma Sharma
  2015-01-14 15:25 ` Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Uma Sharma @ 2015-01-14 15:11 UTC (permalink / raw)
  To: xen-devel

Changing param varibales in sched_credit2.c as static and marking them
as __initdata where required.

Signed-off-by: Uma Sharma <uma.sharma523@gmail.com>

---
diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c
index 1ca521b..581493d 100644
--- a/xen/common/sched_credit2.c
+++ b/xen/common/sched_credit2.c
@@ -163,7 +163,7 @@
 #define CSFLAG_runq_migrate_request (1<<__CSFLAG_runq_migrate_request)
 
 
-int opt_migrate_resist=500;
+static int __initdata opt_migrate_resist=500;
 integer_param("sched_credit2_migrate_resist", opt_migrate_resist);
 
 /*
@@ -186,12 +186,12 @@ integer_param("sched_credit2_migrate_resist", opt_migrate_resist);
  *   to a load of 1.
  */
 #define LOADAVG_GRANULARITY_SHIFT (10)
-int opt_load_window_shift=18;
+static int __initdata opt_load_window_shift=18;
 #define  LOADAVG_WINDOW_SHIFT_MIN 4
 integer_param("credit2_load_window_shift", opt_load_window_shift);
-int opt_underload_balance_tolerance=0;
+static int __initdata opt_underload_balance_tolerance=0;
 integer_param("credit2_balance_under", opt_underload_balance_tolerance);
-int opt_overload_balance_tolerance=-3;
+static int __initdata opt_overload_balance_tolerance=-3;
 integer_param("credit2_balance_over", opt_overload_balance_tolerance);
 
 /*

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

end of thread, other threads:[~2015-01-14 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 15:11 [Patch] static and __initdata symbols in credit2 Uma Sharma
2015-01-14 15:25 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.