xen/sched: don't disable interrupts all the time when dumping run-queues
PATCH 1/1 xen/sched: don't disable interrupts all the time when dumping run-queues
Having interrupts disabled all the time when running dump_runq() is not necessary. All the called functions are doing proper locking and disable interrupts if needed.
Signed-off-by Juergen Gross <[email protected]>
--- xen/common/sched/cpupool.c | 3 --- 1 file changed, 3 deletions(-)
xen/common/sched/cpupool.c +0 -3
@@ -889,12 +889,10 @@ const cpumask_t *cpupool_valid_cpus(const struct cpupool *pool)void dump_runq (unsigned char key) { -unsigned long flags;s_time_t now =NOW ();struct cpupool **c;spin_lock (&cpupool_lock); -local_irq_save (flags);printk ("sched_smt_power_savings: %s\n" , sched_smt_power_savings?"enabled" :"disabled" );
@@ -914,7 +912,6 @@ void dump_runq(unsigned char key)schedule_dump (*c); } -local_irq_restore (flags);spin_unlock (&cpupool_lock); }
Signature · 7 lines
2.16.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Juergen Gross
Having interrupts disabled all the time when running
dump_runq()is not necessary. All the called functions are doing proper locking and disable interrupts if needed.Signed-off-by Juergen Gross <[email protected]>
As said, I'm fine with this other approach as well. :-)
Reviewed-by Dario Faggioli <[email protected]>
Regards
Signature · 6 lines
Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel