lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 31 Oct 2014 17:48:14 +0100
From:	Arnd Bergmann <arnd@...db.de>
To:	linux-arm-kernel@...ts.infradead.org
Cc:	Matthias Brugger <matthias.bgg@...il.com>,
	gregkh@...uxfoundation.org, heiko@...ech.de,
	yingjoe.chen@...il.com, linux-kernel@...r.kernel.org,
	ibanezchen@...il.com, linux-serial@...r.kernel.org, jslaby@...e.cz,
	alan@...ux.intel.com
Subject: Re: [PATCH RESEND] tty: serial: 8250_mtk: Fix quot calculation

On Friday 31 October 2014 17:36:35 Matthias Brugger wrote:
> -               quot = DIV_ROUND_CLOSEST(port->uartclk, 256 * baud);
> +               quot = (port->uartclk / (256 * baud)) + 1;

Should this be DIV_ROUND_UP then?

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ