rt: Remove running_on flag. Does nothing
This commit is contained in:
parent
57cad61353
commit
ed3a5ad5ad
3 changed files with 1 additions and 9 deletions
|
@ -282,9 +282,7 @@ rust_scheduler::start_main_loop() {
|
||||||
DLOG(this, task,
|
DLOG(this, task,
|
||||||
"Running task %p on worker %d",
|
"Running task %p on worker %d",
|
||||||
scheduled_task, id);
|
scheduled_task, id);
|
||||||
scheduled_task->running_on = id;
|
|
||||||
activate(scheduled_task);
|
activate(scheduled_task);
|
||||||
scheduled_task->running_on = -1;
|
|
||||||
|
|
||||||
DLOG(this, task,
|
DLOG(this, task,
|
||||||
"returned from task %s @0x%" PRIxPTR
|
"returned from task %s @0x%" PRIxPTR
|
||||||
|
|
|
@ -244,7 +244,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
|
||||||
list_index(-1),
|
list_index(-1),
|
||||||
next_port_id(0),
|
next_port_id(0),
|
||||||
rendezvous_ptr(0),
|
rendezvous_ptr(0),
|
||||||
running_on(-1),
|
|
||||||
local_region(&sched->srv->local_region),
|
local_region(&sched->srv->local_region),
|
||||||
boxed(&local_region),
|
boxed(&local_region),
|
||||||
unwinding(false),
|
unwinding(false),
|
||||||
|
@ -626,8 +625,7 @@ rust_task::backtrace() {
|
||||||
|
|
||||||
bool rust_task::can_schedule(int id)
|
bool rust_task::can_schedule(int id)
|
||||||
{
|
{
|
||||||
return
|
return true;
|
||||||
running_on == -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
|
|
|
@ -98,10 +98,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
|
||||||
// that location before waking us up.
|
// that location before waking us up.
|
||||||
uintptr_t* rendezvous_ptr;
|
uintptr_t* rendezvous_ptr;
|
||||||
|
|
||||||
// This flag indicates that a worker is either currently running the task
|
|
||||||
// or is about to run this task.
|
|
||||||
int running_on;
|
|
||||||
|
|
||||||
memory_region local_region;
|
memory_region local_region;
|
||||||
boxed_region boxed;
|
boxed_region boxed;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue