Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <siddarajudh@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Siddaraju DH and committed by
Jonathan Corbet
9e7c758e 701b3a3c

+1 -1
+1 -1
Documentation/timers/timekeeping.txt
··· 27 27 what time it is. 28 28 29 29 Typically the clock source is a monotonic, atomic counter which will provide 30 - n bits which count from 0 to 2^(n-1) and then wraps around to 0 and start over. 30 + n bits which count from 0 to (2^n)-1 and then wraps around to 0 and start over. 31 31 It will ideally NEVER stop ticking as long as the system is running. It 32 32 may stop during system suspend. 33 33