Skip to contentSkip to conversation

timekeeping.txt: Correct maxCount of n-bit binary counter

PATCH Applied Siddaraju DH 2 participants 2 messages Jul 19, 2018 – Jul 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 Documentation/timers/timekeeping.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/timers/timekeeping.txt +1 -1
index f3a8cf2..2d1732b 100644
@@ -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.
 
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#1 lore raw
Quoted 4 lines · On Thu, 19 Jul 2018 22:06:51 +0530 Siddaraju DH <[email protected]> wrote:

A n-bit binary counter can count a maximum of 2^n events and the count value ranges from 0 to (2^n)-1

Applied, thanks.

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html