Revert "kernel: services: remember new thread if specified"

This reverts commit 00e7f07187.
This commit is contained in:
bunnie 2021-03-23 23:35:07 +08:00
parent 9541523d76
commit c72d67203a

View file

@ -852,15 +852,13 @@ impl SystemServices {
}
}
new.current_thread = new_tid as _;
klog!("picked thread ID {}", new_tid);
// println!(" -- picked thread {}", new_tid);
} else if x & (1 << new_tid) == 0 {
// println!(
// "thread is {:?}, which is not valid for new thread {}",
// new.state, new_tid
// );
return Err(xous_kernel::Error::ProcessNotFound);
} else {
new.current_thread = new_tid as _;
}
}
ProcessState::Sleeping => {