Bump tag level
[linux-2.6.git] / linux-2.6-630-sched-fix.patch
1 diff -NurpP --exclude '*.orig' --exclude '*.rej' linux-2.6.27.10-vs2.3.x-P/fs/proc/proc_misc.c linux-2.6.27.10-vs2.3.x-P630/fs/proc/proc_misc.c
2 --- linux-2.6.27.10-vs2.3.x-P/fs/proc/proc_misc.c       2008-10-13 14:54:20.000000000 +0200
3 +++ linux-2.6.27.10-vs2.3.x-P630/fs/proc/proc_misc.c    2009-01-12 01:18:23.000000000 +0100
4 @@ -877,6 +877,34 @@ static struct file_operations proc_kpage
5  };
6  #endif /* CONFIG_PROC_PAGE_MONITOR */
7  
8 +extern char debug_630_dumped[4087];
9 +static int show_debug_630(struct seq_file *p, void *v)
10 +{
11 +       seq_printf(p, "%s\n", debug_630_dumped);
12 +       return 0;
13 +}
14 +
15 +static int debug_630_open(struct inode *inode, struct file *filp)
16 +{
17 +       int res;
18 +       struct seq_file *m;
19 +
20 +       res = single_open(filp, show_debug_630, NULL);
21 +       if (!res) {
22 +               m = filp->private_data;
23 +               m->buf = kmalloc(4096, GFP_KERNEL);
24 +               m->size = 4096;
25 +       }
26 +       return res;
27 +}
28 +
29 +static const struct file_operations proc_debug_630_operations = {
30 +       .open = debug_630_open,
31 +       .read = seq_read,
32 +       .llseek = seq_lseek,
33 +       .release = single_release,
34 +};
35 +
36  struct proc_dir_entry *proc_root_kcore;
37  
38  void __init proc_misc_init(void)
39 @@ -955,4 +983,6 @@ void __init proc_misc_init(void)
40  #ifdef CONFIG_MAGIC_SYSRQ
41         proc_create("sysrq-trigger", S_IWUSR, NULL, &proc_sysrq_trigger_operations);
42  #endif
43 +
44 +       create_seq_entry("debug_630", 0, &proc_debug_630_operations);
45  }