> I think I misunderstood this suggestion previously. Using DIV_ROUND_UP > would do the rounding in the correct direction. > This should result in: "the actual clock is as high as possible > without being higher then the requested clock." Yes, that should be done in V2. And if you could also put the '- 1' to the line calculating div2, that would be an extra plus. I think it is a lot more readable to have the whole formula in one place, and not split up. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Attachment:
signature.asc
Description: Digital signature