[PATCH 2/7] cputime: Remove extra cost in task_cputime

2015-11-19 Thread Frederic Weisbecker
From: Hiroshi Shimamoto There is an extra cost in task_cputime() and task_cputime_scaled() when nohz_full is not activated. When vtime accounting is not enabled, we don't need to get deltas of utime and stime under vtime seqlock. This patch removes that cost with adding a shortcut route if

[PATCH 2/7] cputime: Remove extra cost in task_cputime

2015-11-19 Thread Frederic Weisbecker
From: Hiroshi Shimamoto There is an extra cost in task_cputime() and task_cputime_scaled() when nohz_full is not activated. When vtime accounting is not enabled, we don't need to get deltas of utime and stime under vtime seqlock. This patch removes that cost with