summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/cpuinfo-linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/cpuinfo-linux.h')
-rw-r--r--firmware/target/hosted/cpuinfo-linux.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/firmware/target/hosted/cpuinfo-linux.h b/firmware/target/hosted/cpuinfo-linux.h
index d9ba376f49..ebc05d5c43 100644
--- a/firmware/target/hosted/cpuinfo-linux.h
+++ b/firmware/target/hosted/cpuinfo-linux.h
@@ -1,10 +1,10 @@
1/*************************************************************************** 1/***************************************************************************
2 * __________ __ ___. 2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2011 Thomas Martitz 10 * Copyright (C) 2011 Thomas Martitz
@@ -23,6 +23,8 @@
23#ifndef __CPUINFO_LINUX_H__ 23#ifndef __CPUINFO_LINUX_H__
24#define __CPUINFO_LINUX_H__ 24#define __CPUINFO_LINUX_H__
25 25
26#include <stdbool.h>
27
26struct cpuusage { 28struct cpuusage {
27 long usage; /* in hundredth percent */ 29 long usage; /* in hundredth percent */
28 long utime; /* in clock ticks */ 30 long utime; /* in clock ticks */
@@ -37,8 +39,7 @@ struct time_state {
37}; 39};
38 40
39int cpuusage_linux(struct cpuusage* u); 41int cpuusage_linux(struct cpuusage* u);
40int cpufrequency_linux(int cpu); 42int frequency_linux(int cpu, bool scaling);
41int scalingfrequency_linux(int cpu);
42int cpustatetimes_linux(int cpu, struct time_state* data, int max_elements); 43int cpustatetimes_linux(int cpu, struct time_state* data, int max_elements);
43int cpucount_linux(void); 44int cpucount_linux(void);
44 45