aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/cpu_core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/cpu_core.cpp')
-rw-r--r--src/cpu/cpu_core.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/cpu_core.cpp b/src/cpu/cpu_core.cpp
index b0dd4da..2caa58d 100644
--- a/src/cpu/cpu_core.cpp
+++ b/src/cpu/cpu_core.cpp
@@ -131,10 +131,9 @@ void cpu_core::calculate_freq(uint64_t time)
bool is_idle = true;
unsigned int i;
-
/* calculate the maximum frequency of all children */
for (i = 0; i < children.size(); i++)
- if (children[i]) {
+ if (children[i] && children[i]->has_pstates()) {
uint64_t f = 0;
if (!children[i]->idle) {
f = children[i]->current_frequency;