top: add config option and code for global CPU % display

This commit is contained in:
Denis Vlasenko
2007-06-10 17:11:59 +00:00
parent e8a0788b24
commit 5a65447e30
4 changed files with 70 additions and 20 deletions

View File

@@ -102,11 +102,18 @@ config TOP
system.
config FEATURE_TOP_CPU_USAGE_PERCENTAGE
bool "Support showing CPU usage percentage (add 2k bytes)"
bool "Show CPU per-process usage percentage (adds 2k bytes)"
default y
depends on TOP
help
Make top display CPU usage.
Make top display CPU usage for each process.
config FEATURE_TOP_CPU_GLOBAL_PERCENTS
bool "Show CPU global usage percentage (adds 1k byte)"
default y
depends on FEATURE_TOP_CPU_USAGE_PERCENTAGE
help
Makes top display "CPU: n.n% us n.n% sy n.n% ni..." line.
config UPTIME
bool "uptime"