]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] m68k: readd lost proc functions [15/20]
authorRoman Zippel <zippel@linux-m68k.org>
Tue, 7 May 2002 03:11:37 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 7 May 2002 03:11:37 +0000 (20:11 -0700)
These function were removed by a "cleanup", but they are still used.

fs/proc/proc_misc.c

index 4127b50c5e5d65bd120914273e6552011101a531..e59865293c9d5ca8cd1a517ff9faae67d6c56afa 100644 (file)
@@ -50,6 +50,8 @@
  * have a way to deal with that gracefully. Right now I used straightforward
  * wrappers, but this needs further analysis wrt potential overflows.
  */
+extern int get_hardware_list(char *);
+extern int get_stram_list(char *);
 extern int get_device_list(char *);
 extern int get_filesystem_list(char *);
 extern int get_exec_domain_list(char *);
@@ -205,6 +207,24 @@ static struct file_operations proc_cpuinfo_operations = {
        release:        seq_release,
 };
 
+#ifdef CONFIG_PROC_HARDWARE
+static int hardware_read_proc(char *page, char **start, off_t off,
+                                int count, int *eof, void *data)
+{
+       int len = get_hardware_list(page);
+       return proc_calc_metrics(page, start, off, count, eof, len);
+}
+#endif
+
+#ifdef CONFIG_STRAM_PROC
+static int stram_read_proc(char *page, char **start, off_t off,
+                                int count, int *eof, void *data)
+{
+       int len = get_stram_list(page);
+       return proc_calc_metrics(page, start, off, count, eof, len);
+}
+#endif
+
 extern struct seq_operations partitions_op;
 static int partitions_open(struct inode *inode, struct file *file)
 {
@@ -546,6 +566,12 @@ void __init proc_misc_init(void)
                {"uptime",      uptime_read_proc},
                {"meminfo",     meminfo_read_proc},
                {"version",     version_read_proc},
+#ifdef CONFIG_PROC_HARDWARE
+               {"hardware",    hardware_read_proc},
+#endif
+#ifdef CONFIG_STRAM_PROC
+               {"stram",       stram_read_proc},
+#endif
                {"stat",        kstat_read_proc},
                {"devices",     devices_read_proc},
                {"filesystems", filesystems_read_proc},