fix: Bug for getrusage often return incorrect ru_stime

refs #1034
This commit is contained in:
Ken Sato
2018-03-07 13:11:37 +09:00
parent b77732fb4f
commit b7a7281195

View File

@ -9253,6 +9253,7 @@ set_cputime(int mode)
return;
}
cpu_disable_interrupt();
tsc = rdtsc();
if(thread->base_tsc != 0){
unsigned long dtsc = tsc - thread->base_tsc;
@ -9333,6 +9334,7 @@ set_cputime(int mode)
}
}
}
cpu_enable_interrupt();
}
long syscall(int num, ihk_mc_user_context_t *ctx)