kernel: fix single-core preemption points
This commit is contained in:
parent
21945ae127
commit
da07e13e07
6 changed files with 27 additions and 39 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
|
||||
void SetInterruptTaskRunnable();
|
||||
void RequestScheduleOnInterrupt();
|
||||
void PreemptSingleCore();
|
||||
|
||||
u64 GetIdleCount() {
|
||||
return m_state.idle_count;
|
||||
|
@ -62,10 +63,6 @@ public:
|
|||
return m_current_thread.load() == m_idle_thread;
|
||||
}
|
||||
|
||||
std::shared_ptr<Common::Fiber> GetSwitchFiber() {
|
||||
return m_switch_fiber;
|
||||
}
|
||||
|
||||
KThread* GetPreviousThread() const {
|
||||
return m_state.prev_thread;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue