From: "Christian König" <deathsimple@vodafone.de>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: Alex Deucher <alexander.deucher@amd.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm/radeon/dpm/rs780: use drm_mode_vrefresh()
Date: Fri, 13 Sep 2013 17:37:45 +0200 [thread overview]
Message-ID: <52333149.2090007@vodafone.de> (raw)
In-Reply-To: <1379084895-8037-1-git-send-email-alexander.deucher@amd.com>
Am 13.09.2013 17:08, schrieb Alex Deucher:
> Rather than open coding it.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
For this series: Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/radeon/rs780_dpm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/rs780_dpm.c b/drivers/gpu/drm/radeon/rs780_dpm.c
> index 828a776..afb7584 100644
> --- a/drivers/gpu/drm/radeon/rs780_dpm.c
> +++ b/drivers/gpu/drm/radeon/rs780_dpm.c
> @@ -62,9 +62,7 @@ static void rs780_get_pm_mode_parameters(struct radeon_device *rdev)
> radeon_crtc = to_radeon_crtc(crtc);
> pi->crtc_id = radeon_crtc->crtc_id;
> if (crtc->mode.htotal && crtc->mode.vtotal)
> - pi->refresh_rate =
> - (crtc->mode.clock * 1000) /
> - (crtc->mode.htotal * crtc->mode.vtotal);
> + pi->refresh_rate = drm_mode_vrefresh(&crtc->mode);
> break;
> }
> }
prev parent reply other threads:[~2013-09-13 15:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 15:08 [PATCH 1/4] drm/radeon/dpm/rs780: use drm_mode_vrefresh() Alex Deucher
2013-09-13 15:08 ` [PATCH 2/4] drm/radeon/dpm/rs780: add some sanity checking to sclk scaling Alex Deucher
2013-09-13 15:08 ` [PATCH 3/4] drm/radeon/dpm/rs780: don't enable sclk scaling if not required Alex Deucher
2013-09-13 15:08 ` [PATCH 4/4] drm/radeon/dpm/rs780: fix force_performance state for same sclks Alex Deucher
2013-09-13 15:37 ` Christian König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52333149.2090007@vodafone.de \
--to=deathsimple@vodafone.de \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox