diff options
-rw-r--r-- | net/ipv4/tcp_cubic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index f4fb2d4b90ad..5e0491d742ca 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -459,6 +459,10 @@ static int __init cubictcp_register(void) | |||
459 | /* divide by bic_scale and by constant Srtt (100ms) */ | 459 | /* divide by bic_scale and by constant Srtt (100ms) */ |
460 | do_div(cube_factor, bic_scale * 10); | 460 | do_div(cube_factor, bic_scale * 10); |
461 | 461 | ||
462 | /* hystart needs ms clock resolution */ | ||
463 | if (hystart && HZ < 1000) | ||
464 | cubictcp.flags |= TCP_CONG_RTT_STAMP; | ||
465 | |||
462 | return tcp_register_congestion_control(&cubictcp); | 466 | return tcp_register_congestion_control(&cubictcp); |
463 | } | 467 | } |
464 | 468 | ||