]> git.karo-electronics.de Git - linux-beck.git/commit
random: Use this_cpu_inc_return
authorChristoph Lameter <cl@linux.com>
Mon, 6 Dec 2010 17:40:06 +0000 (11:40 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 17 Dec 2010 14:18:05 +0000 (15:18 +0100)
commitb29c617af3b09d150d3889836c24d39564b39180
tree17514cd85f64917e96d736b6dc5ac681dab93955
parentee1be8626355e6a1f3f8c44e2351ff2661c5998d
random: Use this_cpu_inc_return

__this_cpu_inc can create a single instruction to do the same as
__get_cpu_var()++.

Cc: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Matt Mackall <mpm@selenic.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/char/random.c