rename back status field

This commit is contained in:
Tomoki Shirasawa
2015-10-22 20:26:50 +09:00
parent 4e4f1208f7
commit 343bfbd30a
10 changed files with 77 additions and 77 deletions

View File

@ -100,9 +100,9 @@ uint64_t schedule_timeout(uint64_t timeout)
/* Give a chance to another thread (if any) in case the core is
* oversubscribed, but make sure we will be re-scheduled */
if (need_schedule) {
xchg4(&(cpu_local_var(current)->tstatus), PS_RUNNING);
xchg4(&(cpu_local_var(current)->status), PS_RUNNING);
schedule();
xchg4(&(cpu_local_var(current)->tstatus),
xchg4(&(cpu_local_var(current)->status),
PS_INTERRUPTIBLE);
}
else {
@ -137,9 +137,9 @@ uint64_t schedule_timeout(uint64_t timeout)
ihk_mc_spinlock_unlock(&(v->runq_lock), irqstate);
if (need_schedule) {
xchg4(&(cpu_local_var(current)->tstatus), PS_RUNNING);
xchg4(&(cpu_local_var(current)->status), PS_RUNNING);
schedule();
xchg4(&(cpu_local_var(current)->tstatus),
xchg4(&(cpu_local_var(current)->status),
PS_INTERRUPTIBLE);
}
}