patch-1.3.25 linux/fs/proc/array.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/nfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sat Sep 9 09:38:30 1995
- Orig file:
v1.3.24/linux/fs/proc/array.c
- Orig date:
Thu Sep 7 17:17:18 1995
diff -u --recursive --new-file v1.3.24/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -110,10 +110,9 @@
};
-#ifdef CONFIG_PROFILE
-
extern unsigned long prof_len;
extern unsigned long * prof_buffer;
+extern unsigned long prof_shift;
/*
* This function accesses profiling information. The returned data is
* binary: the sampling step and the actual contents of the profile
@@ -125,7 +124,7 @@
unsigned long p = file->f_pos;
int read;
char * pnt;
- unsigned long sample_step = 1 << CONFIG_PROFILE_SHIFT;
+ unsigned long sample_step = 1 << prof_shift;
if (count < 0)
return -EINVAL;
@@ -165,8 +164,6 @@
struct inode_operations proc_profile_inode_operations = {
&proc_profile_operations,
};
-
-#endif /* CONFIG_PROFILE */
static int get_loadavg(char * buffer)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this