Skip to contentSkip to conversation

Do not call abstract_cpu::wiggle for GPU

PATCH Applied Jaroslav Škarvada <jskarvad at redhat.com> 3 participants 3 messages Jan 14, 2013 – Jan 31, 2013

lore
Share & tools
lore

Jaroslav Škarvada <jskarvad at redhat.com>

#0 lore raw

PATCH 1/1 Do not call abstract_cpu::wiggle for GPU

first_cpu is uninitialized there which results in:
open("/sys/devices/system/cpu/cpu1330597711/cpufreq/scaling_max_freq", O_RDONLY)

---
 src/cpu/intel_cpus.h | 1 +
 1 file changed, 1 insertion(+)
src/cpu/intel_cpus.h +1 -0
index 1949af1..752e8d0 100644
@@ -158,5 +158,6 @@ public:
 	virtual char *  fill_cstate_line(int line_nr, char *buffer, const char *separator);
 	virtual int	has_pstate_level(int level) { return 0; };
 	virtual int	has_pstates(void) { return 0; };
+	virtual void	wiggle(void) { };
 
 };
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 12 lines · Jaroslav Škarvada

first_cpu is uninitialized there which results in:
open("/sys/devices/system/cpu/cpu1330597711/cpufreq/scaling_max_freq", O_RDONLY)

---
 src/cpu/intel_cpus.h | 1 +
 1 file changed, 1 insertion(+)
src/cpu/intel_cpus.h +0 -0
index 1949af1..752e8d0 100644

src/cpu/intel_cpus.h public: · line 163

Quoted 6 lines
src/cpu/intel_cpus.h +1 -0
@@ -158,5 +158,6 @@ public:
 	virtual char *  fill_cstate_line(int line_nr, char *buffer, const char *separator);
 	virtual int	has_pstate_level(int level) { return 0; };
 	virtual int	has_pstates(void) { return 0; };
+	virtual void	wiggle(void) { };
 
 };

good catch. thanks.

	-ss
Applied
#2 lore raw
In reply to Jaroslav Škarvada <jskarvad at redhat.com>
Quoted 15 lines · On Mon, 14 Jan 2013 17:41:58 +0100 Jaroslav Škarvada <jskarvad(a)redhat.com>…

first_cpu is uninitialized there which results in:
open("/sys/devices/system/cpu/cpu1330597711/cpufreq/scaling_max_freq", O_RDONLY) ---

 src/cpu/intel_cpus.h | 1 +
 1 file changed, 1 insertion(+)
src/cpu/intel_cpus.h +0 -0
index 1949af1..752e8d0 100644
@@ -158,5 +158,6 @@ public:
 	virtual char *  fill_cstate_line(int line_nr, char *buffer,

const char *separator); virtual int has_pstate_level(int
level) { return 0; }; virtual int has_pstates(void) { return
0; };

src/cpu/intel_cpus.h public: · line 163

Quoted 3 lines
src/cpu/intel_cpus.h +1 -0
+	virtual void	wiggle(void) { };
 
 };

Applied, thanks.

Kristen