Frequency stats reporting was broken on ARM platforms since
power_entry on ARM includes the "dummy" field.  Modified power_entry's
structure definition to include dummy on all platforms except i386.

I have verified that with this fix in place, frequency stats reporting
works correctly on an ARM as well as a 32-bit x86 platform.

Signed-off-by: Sameer Nanda <[email protected]>

diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp
index cab2061..4e7d989 100644
--- a/cpu/cpu.cpp
+++ b/cpu/cpu.cpp
@@ -745,7 +745,7 @@ void w_display_cpu_pstates(void)


 struct power_entry {
-#ifdef __x86_64__
+#ifndef __i386__
        int dummy;
 #endif
        int64_t type;

-- 
Sameer

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to