rt: Remove task pinning. Does nothing

This commit is contained in:
Brian Anderson
2012-02-02 15:56:30 -08:00
parent 18de0f2aeb
commit 57cad61353
11 changed files with 9 additions and 82 deletions

View File

@@ -245,7 +245,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
next_port_id(0),
rendezvous_ptr(0),
running_on(-1),
pinned_on(-1),
local_region(&sched->srv->local_region),
boxed(&local_region),
unwinding(false),
@@ -628,8 +627,7 @@ rust_task::backtrace() {
bool rust_task::can_schedule(int id)
{
return
running_on == -1 &&
(pinned_on == -1 || pinned_on == id);
running_on == -1;
}
void *
@@ -637,20 +635,6 @@ rust_task::calloc(size_t size, const char *tag) {
return local_region.calloc(size, tag);
}
void rust_task::pin() {
I(this->sched, running_on != -1);
pinned_on = running_on;
}
void rust_task::pin(int id) {
I(this->sched, running_on == -1);
pinned_on = id;
}
void rust_task::unpin() {
pinned_on = -1;
}
rust_port_id rust_task::register_port(rust_port *port) {
I(sched, !lock.lock_held_by_current_thread());
scoped_lock with(lock);