|
@@ -58,10 +58,9 @@ static inline unsigned long busy_loop_end_time(void)
|
|
return busy_loop_us_clock() + ACCESS_ONCE(sysctl_net_busy_poll);
|
|
return busy_loop_us_clock() + ACCESS_ONCE(sysctl_net_busy_poll);
|
|
}
|
|
}
|
|
|
|
|
|
-static inline bool sk_can_busy_loop(struct sock *sk)
|
|
|
|
|
|
+static inline bool sk_can_busy_loop(const struct sock *sk)
|
|
{
|
|
{
|
|
- return sk->sk_ll_usec && sk->sk_napi_id &&
|
|
|
|
- !need_resched() && !signal_pending(current);
|
|
|
|
|
|
+ return sk->sk_ll_usec && sk->sk_napi_id && !signal_pending(current);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|