include interrupt handling time into system time

Change-Id: If2ed2d488b4040d288d712f0a244505adbcec6f5
Refs: #1221
This commit is contained in:
Tomoki Shirasawa
2019-09-20 12:49:23 +09:00
committed by Masamichi Takagi
parent ba80dd8650
commit f115bae8a7
11 changed files with 550 additions and 7 deletions

View File

@ -9526,12 +9526,7 @@ set_cputime(enum set_cputime_mode mode)
}
}
if (mode == CPUTIME_MODE_K2K_IN) {
thread->base_tsc = 0;
}
else{
thread->base_tsc = tsc;
}
thread->base_tsc = tsc;
thread->times_update = 1;
thread->in_kernel = (int)mode;