mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: services: don't resume sleeping processes after irq
After an IRQ occurs, check to see if there are any available threads. If there are none, put the process back to sleep. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
263e57d4aa
commit
9367905e6f
1 changed files with 1 additions and 0 deletions
|
|
@ -325,6 +325,7 @@ impl SystemServices {
|
|||
.get_process_mut(current_pid)
|
||||
.expect("couldn't get current PID");
|
||||
current.state = match current.state {
|
||||
ProcessState::Running(0) => ProcessState::Sleeping,
|
||||
ProcessState::Running(x) => ProcessState::Ready(x),
|
||||
y => panic!("current process was {:?}, not 'Running(_)'", y),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue