if it's fine-grained clock dpm, remove the average clock value and
reflects the real clock.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
                        freq_values[1] = cur_value;
                        mark_index = cur_value == freq_values[0] ? 0 :
                                     cur_value == freq_values[2] ? 2 : 1;
-                       if (mark_index != 1)
-                               freq_values[1] = (freq_values[0] + freq_values[2]) / 2;
 
-                       for (i = 0; i < 3; i++) {
+                       count = 3;
+                       if (mark_index != 1) {
+                               count = 2;
+                               freq_values[1] = freq_values[2];
+                       }
+
+                       for (i = 0; i < count; i++) {
                                size += sprintf(buf + size, "%d: %uMhz %s\n", i, freq_values[i],
-                                               i == mark_index ? "*" : "");
+                                               cur_value  == freq_values[i] ? "*" : "");
                        }
 
                }