From: Mike Galbraith Date: Wed, 3 Mar 2010 04:46:50 +0000 (+0000) Subject: net: add scheduler sync hint to tcp_prequeue(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c839d30a41dd92eb32d7fcfa2b4e99042fc64bf2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git net: add scheduler sync hint to tcp_prequeue(). Decreases the odds wakee will suffer from frequent cache misses. Signed-off-by: Mike Galbraith Signed-off-by: David S. Miller --- diff --git a/include/net/tcp.h b/include/net/tcp.h index 56f0aec40ed..75be5a28815 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -939,7 +939,7 @@ static inline int tcp_prequeue(struct sock *sk, struct sk_buff *skb) tp->ucopy.memory = 0; } else if (skb_queue_len(&tp->ucopy.prequeue) == 1) { - wake_up_interruptible_poll(sk->sk_sleep, + wake_up_interruptible_sync_poll(sk->sk_sleep, POLLIN | POLLRDNORM | POLLRDBAND); if (!inet_csk_ack_scheduled(sk)) inet_csk_reset_xmit_timer(sk, ICSK_TIME_DACK,