From: Kyle McMartin <kmcmarti@redhat.com>
To: jglisse@redhat.com
Cc: alexander.deucher@amd.com, airlied@redhat.com,
dri-devel@lists.freedesktop.org, jwboyer@redhat.com
Subject: [PATCH] radeon: si_dpm.c: avoid a signed 64-bit divide
Date: Fri, 2 Aug 2013 13:12:30 -0400 [thread overview]
Message-ID: <20130802171230.GY5919@redacted.bos.redhat.com> (raw)
Hit a compile failure here referencing divdi3 on i686.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
--- a/drivers/gpu/drm/radeon/si_dpm.c
+++ b/drivers/gpu/drm/radeon/si_dpm.c
@@ -1767,7 +1767,7 @@ static void si_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coe
s64 temperature, t_slope, t_intercept, av, bv, t_ref;
s64 tmp;
- i_leakage = drm_int2fixp(ileakage) / 100;
+ i_leakage = div64_s64(drm_int2fixp(ileakage), 100);
vddc = div64_s64(drm_int2fixp(v), 1000);
temperature = div64_s64(drm_int2fixp(t), 1000);
next reply other threads:[~2013-08-02 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 17:12 Kyle McMartin [this message]
2013-08-02 17:14 ` [PATCH] radeon: si_dpm.c: avoid a signed 64-bit divide Deucher, Alexander
2013-08-02 17:16 ` Kyle McMartin
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=20130802171230.GY5919@redacted.bos.redhat.com \
--to=kmcmarti@redhat.com \
--cc=airlied@redhat.com \
--cc=alexander.deucher@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jglisse@redhat.com \
--cc=jwboyer@redhat.com \
/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