diff mbox series

xen/sched: don't disable interrupts all the time when dumping run-queues

Message ID 20200219153300.10679-1-jgross@suse.com (mailing list archive)
State New, archived
Headers show
Series xen/sched: don't disable interrupts all the time when dumping run-queues | expand

Commit Message

Jürgen Groß Feb. 19, 2020, 3:33 p.m. UTC
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 <jgross@suse.com>
---
 xen/common/sched/cpupool.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Dario Faggioli Feb. 19, 2020, 4:01 p.m. UTC | #1
On Wed, 2020-02-19 at 16:33 +0100, Juergen Gross wrote:
> 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 <jgross@suse.com>
>
As said, I'm fine with this other approach as well. :-)

Reviewed-by: Dario Faggioli <dfaggioli@suse.com>

Regards
diff mbox series

Patch

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);
 }