Home
last modified time | relevance | path

Searched refs:preempt_count (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/src/process/
H A Dutils.rs16 return ProcessManager::current_pcb().preempt_count(); in current_pcb_preempt_count()
H A Dc_adapter.rs37 return ProcessManager::current_pcb().preempt_count() as u32; in rs_current_pcb_preempt_count()
H A Dmod.rs621 preempt_count: AtomicUsize, field
722 let preempt_count = AtomicUsize::new(0); in do_create_pcb() localVariable
736 preempt_count, in do_create_pcb()
807 pub fn preempt_count(&self) -> usize { in preempt_count() method
808 return self.preempt_count.load(Ordering::SeqCst); in preempt_count()
814 self.preempt_count.fetch_add(1, Ordering::SeqCst); in preempt_disable()
820 self.preempt_count.fetch_sub(1, Ordering::SeqCst); in preempt_enable()
825 self.preempt_count.store(count, Ordering::SeqCst); in set_preempt_count()
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs218 let prev_count: usize = ProcessManager::current_pcb().preempt_count(); in do_softirq()
221 if unlikely(prev_count != ProcessManager::current_pcb().preempt_count()) { in do_softirq()
226 ProcessManager::current_pcb().preempt_count() in do_softirq()
/DragonOS/docs/kernel/sched/
H A Dcore.md48 …- ``schedule``: ``__schedule``的上层封装,它需要该任务在内核中的所有资源释放干净才能进行调度,即判断当前进程的``preempt_count``是否为0,若不为0则会…
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.6.md51 - textui: 修复由于textui加锁,更改了preempt_count导致“进程长时间连续输出字符”的情况下,进程调度器不运行的问题。 (#203)
299 修复由于textui加锁,更改了preempt_count导致“进程长时间连续输出字符”的情况下,进程调度器不运行的问题。 (#203)
/DragonOS/kernel/src/libs/
H A Dwait_queue.rs296 if unlikely(pcb.preempt_count() > max_preempt) { in before_sleep_check()
300 pcb.preempt_count() in before_sleep_check()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs267 assert_eq!(ProcessManager::current_pcb().preempt_count(), 0); in do_cpuhp_kick_ap()
/DragonOS/kernel/src/sched/
H A Dmod.rs823 assert_eq!(ProcessManager::current_pcb().preempt_count(), 0); in schedule()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs206 &mut format!("\npreempt:\t{}", pcb.preempt_count()) in open_status()