summaryrefslogtreecommitdiff
path: root/overlay/cpu-top.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-27 17:40:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-27 17:43:46 +0100
commitc6b26c5a406225868f05672949bcc4997c94c3ab (patch)
tree913cf3ee290f0e458042c0b50ee167ac0bc56f10 /overlay/cpu-top.h
parent177208b0d4cf64a3e2f18909a47afc5bd646a651 (diff)
overlay: Scale the CPU busy value by the numer of active cores
Having 100% always mean one processor fully utilised is much easier to understand (than having to remember how many cores are on each machine and scale appropriately). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/cpu-top.h')
-rw-r--r--overlay/cpu-top.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/overlay/cpu-top.h b/overlay/cpu-top.h
index 8d630fd9..c91814fd 100644
--- a/overlay/cpu-top.h
+++ b/overlay/cpu-top.h
@@ -29,6 +29,7 @@
struct cpu_top {
uint8_t busy;
+ int nr_cpu;
int count;
struct cpu_stat {
@@ -37,6 +38,7 @@ struct cpu_top {
} stat[2];
};
+int cpu_top_init(struct cpu_top *cpu);
int cpu_top_update(struct cpu_top *cpu);
#endif /* CPU_TOP_H */