aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRobert Picco <robert.picco@hp.com>2004-06-26 20:56:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-26 20:56:49 -0700
commited51aeb3c8f2525743b127328f74bb011fd06f62 (patch)
treed87ff843b65605008997782646f89688a2319ed5 /Documentation
parent30c07cae6d0a80f6d8697df1107a82bdbab58084 (diff)
downloadhistory-ed51aeb3c8f2525743b127328f74bb011fd06f62.tar.gz
[PATCH] hpet fixes
I eliminated the request_irq brain damage, chopped off procfs support (didn't care for it too much in the first place and it was adopted from rtc.c), made the check for FMODE_WRITE in hpet_open and responded to a few other suggestions. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devices.txt1
-rw-r--r--Documentation/filesystems/proc.txt2
-rw-r--r--Documentation/hpet.txt6
3 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/devices.txt b/Documentation/devices.txt
index 0257f2566e43a9..21729adef5dfd3 100644
--- a/Documentation/devices.txt
+++ b/Documentation/devices.txt
@@ -434,6 +434,7 @@ Your cooperation is appreciated.
225 = /dev/pps Pulse Per Second driver
226 = /dev/systrace Systrace device
227 = /dev/mcelog X86_64 Machine Check Exception driver
+ 228 = /dev/hpet HPET driver
240-254 Reserved for local use
255 Reserved for MISC_DYNAMIC_MINOR
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index b84b7a7cc7231c..61ae0daf6cfbe1 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -201,7 +201,7 @@ Table 1-3: Kernel info in /proc
devices Available devices (block and character)
dma Used DMS channels
filesystems Supported filesystems
- driver Various drivers grouped here, currently rtc (2.4) and hpet (2.6)
+ driver Various drivers grouped here, currently rtc (2.4)
execdomains Execdomains, related to security (2.4)
fb Frame Buffer devices (2.4)
fs File system parameters, currently nfs/exports (2.4)
diff --git a/Documentation/hpet.txt b/Documentation/hpet.txt
index 584ebc2770b54a..4e7cc8d3359b9a 100644
--- a/Documentation/hpet.txt
+++ b/Documentation/hpet.txt
@@ -103,7 +103,7 @@ hpet_open_close(int argc, const char **argv)
return;
}
- fd = open(argv[0], O_RDWR);
+ fd = open(argv[0], O_RDONLY);
if (fd < 0)
fprintf(stderr, "hpet_open_close: open failed\n");
else
@@ -136,7 +136,7 @@ hpet_poll(int argc, const char **argv)
freq = atoi(argv[1]);
iterations = atoi(argv[2]);
- fd = open(argv[0], O_RDWR);
+ fd = open(argv[0], O_RDONLY);
if (fd < 0) {
fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]);
@@ -230,7 +230,7 @@ hpet_fasync(int argc, const char **argv)
goto out;
}
- fd = open(argv[0], O_RDWR);
+ fd = open(argv[0], O_RDONLY);
if (fd < 0) {
fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]);