From: Arjan van de Ven Date: Sat, 31 Jul 2010 19:20:07 +0000 (-0700) Subject: initial code X-Git-Tag: 2.1b_release~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f019236b2c9671f11bebe8484b85f78c92a6f138;p=external%2Fpowertop.git initial code --- f019236b2c9671f11bebe8484b85f78c92a6f138 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..95b611b --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +all: powertop + +OBJS := main.o cpu.o +HEADERS := cpu.h + + +clean: + rm -f *.o *~ powertop DEADJOE + +powertop: $(OBJS) $(HEADERS) + g++ $(OBJS) -o powertop diff --git a/cpu.cpp b/cpu.cpp new file mode 100644 index 0000000..8590a49 --- /dev/null +++ b/cpu.cpp @@ -0,0 +1,6 @@ +#include +#include + +#include "cpu.h" + + diff --git a/cpu.h b/cpu.h new file mode 100644 index 0000000..5288eed --- /dev/null +++ b/cpu.h @@ -0,0 +1,28 @@ +#include +#include +#include + +using namespace std; + +class abstract_cpu; + +class abstract_cpu +{ +public: + vector children; + + void measurement_start(void); + void measurement_end(void): +}; + +class cpu_linux: public abstract_cpu +{ +}; + +class cpu_core: public abstract_cpu +{ +}; + +class cpu_package: public abstract_cpu +{ +}; diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..70c0228 --- /dev/null +++ b/main.cpp @@ -0,0 +1,6 @@ + + +int main(int argc, char **argv) +{ + return 0; +} \ No newline at end of file