Messages in this thread Patch in this message | | | Date | Tue, 6 Apr 2004 00:33:59 +0200 | From | Angelo Dell'Aera <> | Subject | Re: [PATCH] kernel 2.6.5-mm1 : laptop-mode |
| |
On Mon, 5 Apr 2004 14:52:09 -0700 Andrew Morton <akpm@osdl.org> wrote:
>"Angelo Dell'Aera" <buffer@antifork.org> wrote: >> >> After upgrading to 2.6.5-mm1 I noticed the script laptop_mode >> failed to initiliaze laptop mode. It is due to the new position >> of the sysctl laptop_mode under /proc. This is an update to the >> documentation (and the script). Please apply. >> ... >> >> -Laptop-mode is controlled by the flag /proc/sys/vm/laptop_mode. When this >> +Laptop-mode is controlled by the flag /proc/sys/fs/laptop_mode. When this > >erk. No, that was not intended. Looks like `patch' decided to move some code around >for me. I'll fix that up, thanks. laptop_mode shall remain in /proc/sys/vm/
OK. Attached a patch which addresses this matter.
Regards.
--
Angelo Dell'Aera 'buffer' Antifork Research, Inc. http://buffer.antifork.org
--- linux-2.6.5-mm1/kernel/sysctl.c.old 2004-04-06 00:26:15.000000000 +0200 +++ linux-2.6.5-mm1/kernel/sysctl.c 2004-04-06 00:28:29.000000000 +0200 @@ -744,6 +744,26 @@ .mode = 0644, .proc_handler = &proc_dointvec }, + { + .ctl_name = VM_LAPTOP_MODE, + .procname = "laptop_mode", + .data = &laptop_mode, + .maxlen = sizeof(laptop_mode), + .mode = 0644, + .proc_handler = &proc_dointvec, + .strategy = &sysctl_intvec, + .extra1 = &zero, + }, + { + .ctl_name = VM_BLOCK_DUMP, + .procname = "block_dump", + .data = &block_dump, + .maxlen = sizeof(block_dump), + .mode = 0644, + .proc_handler = &proc_dointvec, + .strategy = &sysctl_intvec, + .extra1 = &zero, + }, { .ctl_name = 0 } }; @@ -854,26 +874,6 @@ .mode = 0644, .proc_handler = &proc_dointvec, }, - { - .ctl_name = VM_LAPTOP_MODE, - .procname = "laptop_mode", - .data = &laptop_mode, - .maxlen = sizeof(laptop_mode), - .mode = 0644, - .proc_handler = &proc_dointvec, - .strategy = &sysctl_intvec, - .extra1 = &zero, - }, - { - .ctl_name = VM_BLOCK_DUMP, - .procname = "block_dump", - .data = &block_dump, - .maxlen = sizeof(block_dump), - .mode = 0644, - .proc_handler = &proc_dointvec, - .strategy = &sysctl_intvec, - .extra1 = &zero, - }, { .ctl_name = 0 } };
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |