]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rtc: add max_user_freq to sysfs
authorBryan Kadzban <bryan@kdzbn.homelinux.net>
Tue, 16 Oct 2007 08:28:22 +0000 (01:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:13 +0000 (09:43 -0700)
commit06c65eb45578c52d1bc69d044239646d4c90e7ea
tree50d136607746d1a885ed8bb3757a3850faa28dd6
parent05440dfcfcabde6fcf7297dfa5a29f0355b78ffb
rtc: add max_user_freq to sysfs

drivers/char/rtc.c exposed a sysctl to change the maximum frequency at
which a non-root user could ask the RTC to generate interrupts (via the
RTC_IRQP_SET ioctl).  This value is no longer available under the new RTC
subsystem, so add it to sysfs for each RTC device.

Works for me on x86_64 (both reads and writes), using rtc-cmos.

Signed-off-by: Bryan Kadzban <bryan@kdzbn.homelinux.net>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-sysfs.c