From: Juergen Gross Date: Thu, 20 Feb 2020 10:38:31 +0000 (+0100) Subject: sched: don't disable interrupts all the time when dumping run-queues X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~666 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6e0b445ee738cd829ed28c7532cded8afe25886d;p=xen.git 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 Reviewed-by: Dario Faggioli --- diff --git a/xen/common/sched/cpupool.c b/xen/common/sched/cpupool.c index 476916c6ea..b7721b5d02 100644 --- a/xen/common/sched/cpupool.c +++ b/xen/common/sched/cpupool.c @@ -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); }