git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nfsd4: remove some dprintk's
[safe/jmp/linux-2.6]
/
kernel
/
latencytop.c
diff --git
a/kernel/latencytop.c
b/kernel/latencytop.c
index
7c74dab
..
449db46
100644
(file)
--- a/
kernel/latencytop.c
+++ b/
kernel/latencytop.c
@@
-191,7
+191,7
@@
static int lstats_show(struct seq_file *m, void *v)
latency_record[i].time,
latency_record[i].max);
for (q = 0; q < LT_BACKTRACEDEPTH; q++) {
latency_record[i].time,
latency_record[i].max);
for (q = 0; q < LT_BACKTRACEDEPTH; q++) {
- char sym[KSYM_
NAME
_LEN];
+ char sym[KSYM_
SYMBOL
_LEN];
char *c;
if (!latency_record[i].backtrace[q])
break;
char *c;
if (!latency_record[i].backtrace[q])
break;
@@
-233,14
+233,7
@@
static struct file_operations lstats_fops = {
static int __init init_lstats_procfs(void)
{
static int __init init_lstats_procfs(void)
{
- struct proc_dir_entry *pe;
-
- pe = create_proc_entry("latency_stats", 0644, NULL);
- if (!pe)
- return -ENOMEM;
-
- pe->proc_fops = &lstats_fops;
-
+ proc_create("latency_stats", 0644, NULL, &lstats_fops);
return 0;
}
__initcall(init_lstats_procfs);
return 0;
}
__initcall(init_lstats_procfs);