Minimize scheduler locking on task creation

This takes my CPU utilization on task-perf-spawnalot from 35% to 55%
This commit is contained in:
Brian Anderson
2011-07-29 23:02:51 -07:00
parent ec46f07e6e
commit d552a0b959
2 changed files with 2 additions and 1 deletions

View File

@@ -136,7 +136,6 @@ int rust_kernel::start_task_threads()
rust_task *
rust_kernel::create_task(rust_task *spawner, const char *name) {
rust_scheduler *thread = threads[rand(&rctx) % num_threads];
scoped_lock with(thread->lock);
return thread->create_task(spawner, name);
}