[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100331081004.GB23391@pengutronix.de>
Date: Wed, 31 Mar 2010 10:10:04 +0200
From: Wolfram Sang <w.sang@...gutronix.de>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: Bryan Wu <bryan.wu@...onical.com>, gerg@...inux.org,
amit.kucheria@...onical.com, kernel-team@...ts.ubuntu.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
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/ |
Download attachment "signature.asc" of type "application/pgp-signature" (198 bytes)
Powered by blists - more mailing lists