Allow other processors to pick up work

This commit is contained in:
Jeremy Soller
2017-12-05 20:24:03 -07:00
parent 9b327ccba8
commit dd7c61b830

View File

@@ -42,7 +42,7 @@ pub unsafe fn switch() -> bool {
}
let check_context = |context: &mut Context| -> bool {
if context.cpu_id == None && cpu_id == 0 {
if context.cpu_id == None {
context.cpu_id = Some(cpu_id);
// println!("{}: take {} {}", cpu_id, context.id, ::core::str::from_utf8_unchecked(&context.name.lock()));
}