Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 882011 Details for
Bug 1083702
cpuscaling unknown command: run
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch fixing systems with no boost frequencies
0001-1083702-cpuscaling-unknown-command-run.patch (text/plain), 1.75 KB, created by
Greg Nichols
on 2014-04-02 21:17:10 UTC
(
hide
)
Description:
patch fixing systems with no boost frequencies
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2014-04-02 21:17:10 UTC
Size:
1.75 KB
patch
obsolete
>From ceeac2bea117605762dbdb8eaec8c3981bce9401 Mon Sep 17 00:00:00 2001 >From: Greg Nichols <gnichols@redhat.com> >Date: Wed, 2 Apr 2014 17:16:20 -0400 >Subject: [PATCH] 1083702 - cpuscaling unknown command: run > >--- > hwcert/backend.py | 5 ++--- > tests/cpuscaling/cpupower.py | 9 +++++++-- > 2 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/hwcert/backend.py b/hwcert/backend.py >index 908d075..55a3aa3 100644 >--- a/hwcert/backend.py >+++ b/hwcert/backend.py >@@ -178,11 +178,10 @@ class Backend(HardwareTestHarness): > > result = False > # do the command >- try: >+ if self.command in self.commands: > result = self.commands[self.command]() >- except KeyError, e: >+ else: > print "unknown command: " + self.command >- print e > self.releaseLock() > return result > >diff --git a/tests/cpuscaling/cpupower.py b/tests/cpuscaling/cpupower.py >index 44e28ba..b615255 100644 >--- a/tests/cpuscaling/cpupower.py >+++ b/tests/cpuscaling/cpupower.py >@@ -469,11 +469,16 @@ class CPUPower(): > > def getMaximumBoostFrequency(self): > """ get the maximum supported frequency, in int(MHz) """ >- return self.maximumBoostFrequency[self.cpuNumbers[0]] >+ if self.maximumBoostFrequency: >+ return self.maximumBoostFrequency[self.cpuNumbers[0]] >+ return 0 > > def getMinimumBoostFrequency(self): > """ get the minimum supported frequency, in int(MHz) """ >- return self.minimumBoostFrequency[self.cpuNumbers[0]] >+ if self.minimumBoostFrequency: >+ return self.minimumBoostFrequency[self.cpuNumbers[0]] >+ else: >+ return 0 > > def getCurrentFrequency(self, cpu): > """ get the current frequency """ >-- >1.8.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1083702
: 882011