Merge branches 'acpi-processor', 'acpi-hotplug' and 'acpi-battery'
[linux-2.6-block.git] / net / ipv4 / tcp_vegas.c
index 9a5e05f27f4f7cce16cb285698cb0fc73ef49a91..b40ad897f94509201988b6b9cc589e599d036851 100644 (file)
@@ -218,7 +218,8 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked)
                         * This is:
                         *     (actual rate in segments) * baseRTT
                         */
-                       target_cwnd = tp->snd_cwnd * vegas->baseRTT / rtt;
+                       target_cwnd = (u64)tp->snd_cwnd * vegas->baseRTT;
+                       do_div(target_cwnd, rtt);
 
                        /* Calculate the difference between the window we had,
                         * and the window we would like to have. This quantity