From: Siddaraju DH Date: Thu, 19 Jul 2018 16:36:51 +0000 (+0530) Subject: timekeeping.txt: Correct maxCount of n-bit binary counter X-Git-Tag: for-linus-20180825~106^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9e7c758ec4768cf47779dea3cc8452f871f8d07e;p=linux-block.git timekeeping.txt: Correct maxCount of n-bit binary counter A n-bit binary counter can count a maximum of 2^n events and the count value ranges from 0 to (2^n)-1 Signed-off-by: Siddaraju DH Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/timers/timekeeping.txt b/Documentation/timers/timekeeping.txt index f3a8cf28f802..2d1732b0a868 100644 --- a/Documentation/timers/timekeeping.txt +++ b/Documentation/timers/timekeeping.txt @@ -27,7 +27,7 @@ a Linux system will eventually read the clock source to determine exactly what time it is. Typically the clock source is a monotonic, atomic counter which will provide -n bits which count from 0 to 2^(n-1) and then wraps around to 0 and start over. +n bits which count from 0 to (2^n)-1 and then wraps around to 0 and start over. It will ideally NEVER stop ticking as long as the system is running. It may stop during system suspend.