diff options
| author | Peter Zijlstra <[email protected]> | 2016-08-15 18:38:42 +0200 | 
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-08-18 10:48:46 +0200 | 
| commit | 173be9a14f7b2e901cf77c18b1aafd4d672e9d9e (patch) | |
| tree | d90bbe487b1aa4ca149b68e7323b3e2ac2940c6d /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
| parent | 3684b03d8e9a889eda94ee74421959a9d55e5e19 (diff) | |
sched/cputime: Fix NO_HZ_FULL getrusage() monotonicity regression
Mike reports:
 Roughly 10% of the time, ltp testcase getrusage04 fails:
 getrusage04    0  TINFO  :  Expected timers granularity is 4000 us
 getrusage04    0  TINFO  :  Using 1 as multiply factor for max [us]time increment (1000+4000us)!
 getrusage04    0  TINFO  :  utime:           0us; stime:         179us
 getrusage04    0  TINFO  :  utime:        3751us; stime:           0us
 getrusage04    1  TFAIL  :  getrusage04.c:133: stime increased > 5000us:
And tracked it down to the case where the task simply doesn't get
_any_ [us]time ticks.
Update the code to assume all rtime is utime when we lack information,
thus ensuring a task that elides the tick gets time accounted.
Reported-by: Mike Galbraith <[email protected]>
Tested-by: Mike Galbraith <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Fredrik Markstrom <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Radim <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: Wanpeng Li <[email protected]>
Cc: [email protected] # 4.3+
Fixes: 9d7fb0427648 ("sched/cputime: Guarantee stime + utime == rtime")
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
0 files changed, 0 insertions, 0 deletions