Re: [PATCH] watchdog: dw_wdt: dont build for avr32

From: Andy Shevchenko
Date: Tue Apr 12 2016 - 14:17:50 EST


On Tue, Apr 12, 2016 at 9:01 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On Tue, Apr 12, 2016 at 05:58:20PM +0300, Andy Shevchenko wrote:
>> On Tue, Apr 12, 2016 at 4:39 PM, Sudip Mukherjee
>> <sudipm.mukherjee@xxxxxxxxx> wrote:
>> > On Tuesday 12 April 2016 06:36 PM, Guenter Roeck wrote:
>> >>

> Sorry, I am missing something. do_div() should work fine with any 32 bit value
> as divisor, no matter what that value is. Why does it fail here ? And why does
> it work if I pass 0x1fffff as second parameter to do_div() directly ?

Perhaps compare assembly code in both cases?



--
With Best Regards,
Andy Shevchenko