From: Eric Dumazet Date: Thu, 20 Mar 2014 04:02:21 +0000 (-0700) Subject: tcp: syncookies: do not use getnstimeofday() X-Git-Tag: v3.14-rc8~3^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632623153196bf183a69686ed9c07eee98ff1bf8;p=pandora-kernel.git tcp: syncookies: do not use getnstimeofday() While it is true that getnstimeofday() uses about 40 cycles if TSC is available, it can use 1600 cycles if hpet is the clocksource. Switch to get_jiffies_64(), as this is more than enough, and go back to 60 seconds periods. Fixes: 8c27bd75f04f ("tcp: syncookies: reduce cookie lifetime to 128 seconds") Signed-off-by: Eric Dumazet Cc: Florian Westphal Acked-by: Florian Westphal Signed-off-by: David S. Miller --- Reading git-diff-tree failed