Skip to content

Commit add3eee

Browse files
icklerodrigovivi
authored andcommitted
drm/i915/pmu: "Frequency" is reported as accumulated cycles
We report "frequencies" (actual-frequency, requested-frequency) as the number of accumulated cycles so that the average frequency over that period may be determined by the user. This means the units we report to the user are Mcycles (or just M), not MHz. Signed-off-by: Chris Wilson <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: [email protected] Reviewed-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit e88866e) Signed-off-by: Joonas Lahtinen <[email protected]> (cherry picked from commit a7d87b7) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 1aa4df7 commit add3eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_pmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ create_event_attributes(struct i915_pmu *pmu)
843843
const char *name;
844844
const char *unit;
845845
} events[] = {
846-
__event(I915_PMU_ACTUAL_FREQUENCY, "actual-frequency", "MHz"),
847-
__event(I915_PMU_REQUESTED_FREQUENCY, "requested-frequency", "MHz"),
846+
__event(I915_PMU_ACTUAL_FREQUENCY, "actual-frequency", "M"),
847+
__event(I915_PMU_REQUESTED_FREQUENCY, "requested-frequency", "M"),
848848
__event(I915_PMU_INTERRUPTS, "interrupts", NULL),
849849
__event(I915_PMU_RC6_RESIDENCY, "rc6-residency", "ns"),
850850
};

0 commit comments

Comments
 (0)