Message ID | 20200302143943.32676-4-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/6] drm/i915: Nuke pointless div by 64bit | expand |
diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c index b756e8fb7682..be88eb41035a 100644 --- a/drivers/gpu/drm/i915/intel_device_info.c +++ b/drivers/gpu/drm/i915/intel_device_info.c @@ -748,8 +748,10 @@ static u32 read_timestamp_frequency(struct drm_i915_private *dev_priv) * "The value in this register increments once every 16 * hclks." (through the “Clocking Configuration” * (“CLKCFG”) MCHBAR register) + * + * Testing on actual hardware has shown there is no /16. */ - return RUNTIME_INFO(dev_priv)->rawclk_freq * 1000 / 16; + return RUNTIME_INFO(dev_priv)->rawclk_freq * 1000; } else if (IS_G4X(dev_priv)) { /* * 63:20 increments every 1/4 ns