summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-01 16:12:35 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:50 (GMT)
commit6eabf29622f23f12a5409e62aaadd406f6b62383 (patch)
tree106a1524b4a10ff3af4d63c667f016eb989b7761 /net
parent006c9ab271a7d079ac4fd8312988c4bdc87f526f (diff)
downloadlinux-fsl-qoriq-6eabf29622f23f12a5409e62aaadd406f6b62383.tar.xz
net: Use get_cpu_light() in ip_send_unicast_reply()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 3982eab..e9fa68c 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1505,7 +1505,8 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
if (IS_ERR(rt))
return;
- inet = &get_cpu_var(unicast_sock);
+ get_cpu_light();
+ inet = &__get_cpu_var(unicast_sock);
inet->tos = arg->tos;
sk = &inet->sk;
@@ -1529,7 +1530,7 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
ip_push_pending_frames(sk, &fl4);
}
- put_cpu_var(unicast_sock);
+ put_cpu_light();
ip_rt_put(rt);
}