[PATCH] netdev/fec.c: add phylib supporting to enable carrier detection

Wolfram Sang w.sang at pengutronix.de
Wed Mar 31 08:10:04 UTC 2010


> With rounding this would be:
> 
> (clk_get_rate() + 4999999) / 5000000

Better use DIV_ROUND_UP(clk_get_rate(), 5000000)?

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20100331/7a00f71e/attachment.pgp>


More information about the kernel-team mailing list