mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 12:33:22 +00:00
Remove priority field from OSTD Task struct
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
0a36760f7a
commit
8927031426
@ -4,10 +4,11 @@ use alloc::sync::Arc;
|
||||
use core::time::Duration;
|
||||
|
||||
use log::trace;
|
||||
use ostd::{arch::timer::Jiffies, task::Priority};
|
||||
use ostd::arch::timer::Jiffies;
|
||||
|
||||
use super::{ext::IfaceEx, Iface, IFACES};
|
||||
use crate::{
|
||||
sched::priority::{Priority, PriorityRange},
|
||||
thread::{
|
||||
kernel_thread::{KernelThreadExt, ThreadOptions},
|
||||
Thread,
|
||||
@ -68,6 +69,7 @@ fn spawn_background_poll_thread(iface: Arc<Iface>) {
|
||||
}
|
||||
};
|
||||
|
||||
let options = ThreadOptions::new(task_fn).priority(Priority::high());
|
||||
// FIXME: remove the use of real-time priority.
|
||||
let options = ThreadOptions::new(task_fn).priority(Priority::new(PriorityRange::new(0)));
|
||||
Thread::spawn_kernel_thread(options);
|
||||
}
|
||||
|
Reference in New Issue
Block a user