Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329387
b: refs/heads/master
c: be2cde9
h: refs/heads/master
i:
  329385: 12cb31f
  329383: f37d970
v: v3
  • Loading branch information
Daniel Vetter committed Sep 3, 2012
1 parent 1ceecac commit eb5014c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20e4d407fbe39bd15f6d4ded25e8c307789ecc80
refs/heads/master: be2cde9a6d922e5e43efd2ad39bc43ce70a5d79b
15 changes: 15 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,21 @@ TRACE_EVENT(i915_reg_rw,
(u32)(__entry->val >> 32))
);

TRACE_EVENT(intel_gpu_freq_change,
TP_PROTO(u32 freq),
TP_ARGS(freq),

TP_STRUCT__entry(
__field(u32, freq)
),

TP_fast_assign(
__entry->freq = freq;
),

TP_printk("new_freq=%u", __entry->freq)
);

#endif /* _I915_TRACE_H_ */

/* This part must be outside protection */
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2337,6 +2337,8 @@ void gen6_set_rps(struct drm_device *dev, u8 val)
I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, limits);

dev_priv->rps.cur_delay = val;

trace_intel_gpu_freq_change(val * 50);
}

static void gen6_disable_rps(struct drm_device *dev)
Expand Down

0 comments on commit eb5014c

Please sign in to comment.