Author: gnichols Date: 2011-10-24 15:36:11 +0000 (Mon, 24 Oct 2011) New Revision: 1135
Modified: trunk/tests/cpuscaling/cpuscaling.py Log: 748062 - v7 1.4 R34 cpuscaling selects wrong measurement method
Modified: trunk/tests/cpuscaling/cpuscaling.py =================================================================== --- trunk/tests/cpuscaling/cpuscaling.py 2011-10-24 15:35:12 UTC (rev 1134) +++ trunk/tests/cpuscaling/cpuscaling.py 2011-10-24 15:36:11 UTC (rev 1135) @@ -614,10 +614,13 @@ print "\n Measurement Method:" # use ./aperfmperf.py to assess effective frequency support, as cpuflags are not reliable. efi = EffectiveFrequency(0) - self.effectiveFrequencySupport = efi.has_support() is 0 - if self.effectiveFrequencySupport: + if efi.has_support(): + self.effectiveFrequencySupport = True + print " /dev/cpu/0/cpuid indicates aperf/mperf is supported" print " Using C sqrt load processes and aperf/mperf effective freq. measurement (aperf.c)" else: + self.effectiveFrequencySupport = False + print " /dev/cpu/0/cpuid indicates aperf/mperf is NOT supported" print " Using Python pi load processes with /sys freq. values, (no aperf/mperf support)." print "" sys.stdout.flush()
v7-commits@lists.stg.fedorahosted.org