<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>Google fail. I'd like to go back to my 32b machine and try to reproduce this. your patch seems fine to me though. <br><br><br>-------- Original message --------<br>Subject: Re: [PATCH] drm/i915: rc6 residency (fix the fix) <br>From: Chris Wilson <chris@chris-wilson.co.uk> <br>To: Ben Widawsky <ben@bwidawsk.net> <br>CC: intel-gfx@lists.freedesktop.org,Ben Widawsky <benjamin.widawsky@intel.com> <br><br><br><div style="word-break:break-all;">On Sun, 22 Apr 2012 11:02:32 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:<br>> Does div_round64 work for you? I think that is the best solution.<br><br>Only exists in drivers/cpuidle/governors/menu.c, and still would need a<br>do_div to avoid the subsequent 64-bit division.<br><br>The choice appears to be either perform the divide by 1000 using do_div,<br>or note that a u32 * 128 / 1000 is also a u32 and so cast the result of<br>DIV_ROUND_UP_ULL back to u32.<br>-Chris<br><br>-- <br>Chris Wilson, Intel Open Source Technology Centre<br></div> </body>