]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched/fair: Fix comments
authorPeter Zijlstra <peterz@infradead.org>
Mon, 10 Apr 2017 10:47:33 +0000 (12:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 14 Apr 2017 08:26:36 +0000 (10:26 +0200)
commit3841cdc31099fe3b84c93903c63e3d60348c0ea1
treefbf5cfbe5db805f191b8be1afe7d2dc78399fdbe
parent76d034edcf658e3c74fd90b149882ab1464e4af9
sched/fair: Fix comments

Historically our periods (or p) argument in PELT denoted the number of
full periods (what is now d2). However recent patches have changed
this to the total decay (previously p+1), leading to a confusing
discrepancy between comments and code.

Try and clarify things by making periods (in code) and p (in comments)
be the same thing (again).

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c