static symbols in credit2
PATCH 1/1 static symbols in credit2
Changing param varibales in sched_credit2.c as static where required.
---
xen/common/sched_credit2.c +4 -4
@@ -163,7 +163,7 @@#define CSFLAG_runq_migrate_request (1<<__CSFLAG_runq_migrate_request) -int opt_migrate_resist=500 ; +static int 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 opt_load_window_shift =18 ;#define LOADAVG_WINDOW_SHIFT_MIN 4integer_param ("credit2_load_window_shift" , opt_load_window_shift); -int opt_underload_balance_tolerance=0 ; +static int opt_underload_balance_tolerance =0 ;integer_param ("credit2_balance_under" , opt_underload_balance_tolerance); -int opt_overload_balance_tolerance=-3 ; +static int opt_overload_balance_tolerance =-3 ;integer_param ("credit2_balance_over" , opt_overload_balance_tolerance);/*
Hi Uma,
AFAICT, this is the second version of the patch, that you produced after receiving feedback on your first submission, isn't it? In that case, you should make that evident in the subject, using something like "[PATCH v2]"
Quoted 6 lines · Uma Sharma
Changing param varibales in
sched_credit2.cas static where required.Signed-off-by Uma Sharma <[email protected]>---
And also, you should put a summary of what changed in this new submission, wrt the previous one(s). We usually put it here, in the changelog, below the '---' marker.
In this case, that is pretty straightforward, but please do, if only to get used to it! :-)
xen/common/sched_credit2.c line 168
Quoted 12 lines
xen/common/sched_credit2.c +1
-1@@ -163,7 +163,7 @@#define CSFLAG_runq_migrate_request (1<<__CSFLAG_runq_migrate_request) -int opt_migrate_resist=500 ; +static int opt_migrate_resist =500 ;integer_param ("sched_credit2_migrate_resist" , opt_migrate_resist);
Sorry for mentioning this only now, but, what about "__read_mostly" as an attribute (for others too) ?
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 3 lines · Uma Sharma
Changing param varibales in
sched_credit2.cas static where required.Signed-off-by Uma Sharma <[email protected]>
Sorry for the delay -- everything looks good code-wise; but it probably makes sense to send v3 with Dario's suggestions.
-George
Hi,
Dariof, I am not able to understand the last statement.
Quoted 11 lines · George Dunlap
Quoted 3 lines · Uma Sharma
Changing param varibales in
sched_credit2.cas static where required.Signed-off-by Uma Sharma <[email protected]>Sorry for the delay -- everything looks good code-wise; but it probably makes sense to send v3 with Dario's suggestions.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Hi,
Sorry for being less responsive these days. Was facing some health issues (cold).
Hope I can start work from tomorrow. :-)
Sorry Dariof I did not get this statement "what about "__read_mostly" as an attribute (for others too) ?"
Is it about making other variables __initdata ?
Quoted 16 lines · Uma Sharma
Hi,
Dariof, I am not able to understand the last statement.
Quoted 11 lines · George Dunlap
Quoted 3 lines · Uma Sharma
Changing param varibales in
sched_credit2.cas static where required.Signed-off-by Uma Sharma <[email protected]>Sorry for the delay -- everything looks good code-wise; but it probably makes sense to send v3 with Dario's suggestions.
-George
Signature · 3 lines
Regards, Uma Sharma http://about.me/umasharma