Messages in this thread | | | Date | Wed, 31 Mar 2010 10:10:04 +0200 | From | Wolfram Sang <> | Subject | Re: [PATCH] netdev/fec.c: add phylib supporting to enable carrier detection |
| |
> 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/ | [unhandled content-type:application/pgp-signature] | |