[PATCH v2 1/4] timer: Optimize fastpath_timer_check()

2015-10-14 Thread Jason Low
In fastpath_timer_check(), the task_cputime() function is always called to compute the utime and stime values. However, this is not necessary if there are no per-thread timers to check for. This patch modifies the code such that we compute the task_cputime values only when there are per-thread

[PATCH v2 1/4] timer: Optimize fastpath_timer_check()

2015-10-14 Thread Jason Low
In fastpath_timer_check(), the task_cputime() function is always called to compute the utime and stime values. However, this is not necessary if there are no per-thread timers to check for. This patch modifies the code such that we compute the task_cputime values only when there are per-thread