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

Wolfram Sang w.sang at pengutronix.de
Wed Mar 31 04:10:04 EDT 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: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100331/7a00f71e/attachment.sig>


More information about the linux-arm-kernel mailing list