Re: [PATCHSET][2.6-test4][0/6]Support for HPET based timer - Take 2

Linus Torvalds
2003-08-31T21:05:38Z

On Fri, 29 Aug 2003, Erik Andersen wrote:
>
> gcc then generates code calling __udivdi3 and __umoddi3. Since
> the kernel does not provide these, people keep reinventing them.
> Perhaps it is time to kill off do_div and all its little friends
> and simply copy __udivdi3 and __umoddi3 from libgcc.....

No. do_div() does _nothing_ like __udivdi3/__umoddi3.

Read the documentation.

Linus