Commit: f9bcf1e0e014 ("sched/cputime: Fix steal time accounting") ... fixes a leak on steal time accounting but forgets to account the ticks passed in parameters, assuming there is only one to take into account. Let's consider that parameter back.
Unified · Split
| @@ -509,12 +509,13 @@ void account_process_tick(struct task_struct *p, int user_tick) · 508 unmodified lines | ||
| 509 | 509 | void account_idle_ticks(unsigned long ticks) |
| 510 | 510 | { |
| 511 | 511 | cputime_t cputime, steal; |
| 512 | + | |
| 512 | 513 | if (sched_clock_irqtime) { |
| 513 | 514 | irqtime_account_idle_ticks(ticks); |
| 514 | 515 | return; |
| 515 | 516 | } |
| 516 | 517 | |
| 517 | − cputime = cputime_one_jiffy; | |
| 518 | + cputime = jiffies_to_cputime(ticks); | |
| 518 | 519 | steal = steal_account_process_time(cputime); |
| 519 | 520 | |
| 520 | 521 | if (steal >= cputime) |