]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
timekeeping.txt: Correct maxCount of n-bit binary counter
authorSiddaraju DH <siddarajudh@gmail.com>
Thu, 19 Jul 2018 16:36:51 +0000 (22:06 +0530)
committerJonathan Corbet <corbet@lwn.net>
Mon, 23 Jul 2018 15:33:06 +0000 (09:33 -0600)
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 <siddarajudh@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/timers/timekeeping.txt

index f3a8cf28f802027da8ff03e663fd5ffb4990eb76..2d1732b0a868012165a11a21f2b3d4ffe4c1f750 100644 (file)
@@ -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.