]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Represent laptop_mode as jiffies internally
authorBart Samwel <bart@samwel.tk>
Fri, 24 Mar 2006 11:15:49 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:20 +0000 (07:33 -0800)
commited5b43f15a8e86e3ae939b98bc161ee973ecedf2
treedcd5bc0b5817d6452b0897a08293317f470f4db9
parentf6ef943813ac3085ece7252ea101d663581219f6
[PATCH] Represent laptop_mode as jiffies internally

Make that the internal value for /proc/sys/vm/laptop_mode is stored as
jiffies instead of seconds.  Let the sysctl interface do the conversions,
instead of doing on-the-fly conversions every time the value is used.

Add a description of the fact that laptop_mode doubles as a flag and a
timeout to the comment above the laptop_mode variable.

Signed-off-by: Bart Samwel <bart@samwel.tk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sysctl.c
mm/page-writeback.c