diff options
author | Paul Jackson <pj@sgi.com> | 2006-12-22 04:06:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 11:55:46 -0500 |
commit | 2aea4fb61609ba7ef82f7dc6fca116bda88816e1 (patch) | |
tree | e6281c312412e75d4e15691231165370ae0c3168 | |
parent | 0b76e20b27d20f7cb240e6b1b2dbebaa1b7f9b60 (diff) |
[PATCH] CONFIG_VM_EVENT_COUNTER comment decrustify
The VM event counters, enabled by CONFIG_VM_EVENT_COUNTERS, which provides
VM event counters in /proc/vmstat, has become more essential to
non-EMBEDDED kernel configurations than they were in the past. Comments in
the code and the Kconfig configuration explanation were stale, downplaying
their role excessively.
Refresh those comments to correctly reflect the current role of VM event
counters.
Signed-off-by: Paul Jackson <pj@sgi.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/vmstat.h | 5 | ||||
-rw-r--r-- | init/Kconfig | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index c89df55f6e03..532360010919 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -10,8 +10,9 @@ | |||
10 | /* | 10 | /* |
11 | * Light weight per cpu counter implementation. | 11 | * Light weight per cpu counter implementation. |
12 | * | 12 | * |
13 | * Counters should only be incremented and no critical kernel component | 13 | * Counters should only be incremented. You need to set EMBEDDED |
14 | * should rely on the counter values. | 14 | * to disable VM_EVENT_COUNTERS. Things like procps (vmstat, |
15 | * top, etc) use /proc/vmstat and depend on these counters. | ||
15 | * | 16 | * |
16 | * Counters are handled completely inline. On many platforms the code | 17 | * Counters are handled completely inline. On many platforms the code |
17 | * generated will simply be the increment of a global address. | 18 | * generated will simply be the increment of a global address. |
diff --git a/init/Kconfig b/init/Kconfig index f000edb3bb7a..9b1adb176ea8 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -461,10 +461,10 @@ config VM_EVENT_COUNTERS | |||
461 | default y | 461 | default y |
462 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED | 462 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED |
463 | help | 463 | help |
464 | VM event counters are only needed to for event counts to be | 464 | VM event counters are needed for event counts to be shown. |
465 | shown. They have no function for the kernel itself. This | 465 | This option allows the disabling of the VM event counters |
466 | option allows the disabling of the VM event counters. | 466 | on EMBEDDED systems. /proc/vmstat will only show page counts |
467 | /proc/vmstat will only show page counts. | 467 | if VM event counters are disabled. |
468 | 468 | ||
469 | endmenu # General setup | 469 | endmenu # General setup |
470 | 470 | ||