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

[PATCH] rtc: small documentation update

Rtc driver documentation update

* Mention the max-user-freq control file.
* Add missing header in example code.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jean Delvare and committed by
Linus Torvalds
9be05b57 8e12ecc2

+5 -2
+5 -2
Documentation/rtc.txt
··· 44 44 Programming and/or enabling interrupt frequencies greater than 64Hz is 45 45 only allowed by root. This is perhaps a bit conservative, but we don't want 46 46 an evil user generating lots of IRQs on a slow 386sx-16, where it might have 47 - a negative impact on performance. Note that the interrupt handler is only 48 - a few lines of code to minimize any possibility of this effect. 47 + a negative impact on performance. This 64Hz limit can be changed by writing 48 + a different value to /proc/sys/dev/rtc/max-user-freq. Note that the 49 + interrupt handler is only a few lines of code to minimize any possibility 50 + of this effect. 49 51 50 52 Also, if the kernel time is synchronized with an external source, the 51 53 kernel will write the time back to the CMOS clock every 11 minutes. In ··· 83 81 */ 84 82 85 83 #include <stdio.h> 84 + #include <stdlib.h> 86 85 #include <linux/rtc.h> 87 86 #include <sys/ioctl.h> 88 87 #include <sys/time.h>