From c5754fd61f08e8c1020cccbb9c7b875c33bd0a73 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Fri, 23 Feb 2024 08:09:55 +0000 Subject: kern: Use _irq variant of lock and disable interrupts During quantum adjustment, disable interrupts and call appropriate lock. Message-ID: <20240223080948.457792-1-damien@zamaudio.com> --- kern/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/processor.c') diff --git a/kern/processor.c b/kern/processor.c index 44315b87..0e42fa37 100644 --- a/kern/processor.c +++ b/kern/processor.c @@ -167,7 +167,7 @@ void pset_init( pset->set_quantum = min_quantum; #if NCPUS > 1 pset->quantum_adj_index = 0; - simple_lock_init(&pset->quantum_adj_lock); + simple_lock_init_irq(&pset->quantum_adj_lock); for (i = 0; i <= NCPUS; i++) { pset->machine_quantum[i] = min_quantum; -- cgit v1.2.3