[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 04 Apr 2009 16:41:23 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] socket: use percpu_add() while updating sockets_in_use
From: Eric Dumazet <dada1@...mosbay.com>
Date: Thu, 02 Apr 2009 08:58:00 +0200
> sock_alloc() currently uses following code to update sockets_in_use
>
> get_cpu_var(sockets_in_use)++;
> put_cpu_var(sockets_in_use);
>
> This translates to :
...
> While percpu_add(sockets_in_use, 1) translates to a single instruction :
>
> c0436275: 64 83 05 20 5f 6a c0 addl $0x1,%fs:0xc06a5f20
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists