amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* linux-5.6-rc1/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8411:45: error: Division by zero.
@ 2020-02-10 13:26 David Binderman
  0 siblings, 0 replies; only message in thread
From: David Binderman @ 2020-02-10 13:26 UTC (permalink / raw)
  To: harry.wentland, sunpeng.li, alexander.deucher, christian.koenig,
	David1.Zhou, David Airlie, daniel, sumit.semwal, amd-gfx,
	dri-devel, Linux Kernel Mailing List, linux-media, linaro-mm-sig

Hello there,

Source code is

    unsigned int vsync_rate_hz = 0;
    struct dc_static_screen_params params = {0};
    /* Calculate number of static frames before generating interrupt to
     * enter PSR.
     */
    unsigned int frame_time_microsec = 1000000 / vsync_rate_hz;

Suggest code rework.

Regards

David Binderman
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-10 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10 13:26 linux-5.6-rc1/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8411:45: error: Division by zero David Binderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).