projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd85fc5
)
xen: Use this_cpu_inc_return
author
Christoph Lameter
<cl@linux.com>
Mon, 6 Dec 2010 17:40:07 +0000
(11:40 -0600)
committer
Tejun Heo
<tj@kernel.org>
Fri, 17 Dec 2010 14:18:05 +0000
(15:18 +0100)
__this_cpu_inc_return reduces code and simplifies code.
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
drivers/xen/events.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/xen/events.c
b/drivers/xen/events.c
index a10c66dc9dda294003ed2ed36735a7b18d12dddf..65f8637d13cf1fa555825824d71c5a4c30e39828 100644
(file)
--- a/
drivers/xen/events.c
+++ b/
drivers/xen/events.c
@@
-1109,7
+1109,7
@@
static void __xen_evtchn_do_upcall(void)
vcpu_info->evtchn_upcall_pending = 0;
- if (__
get_cpu_var(xed_nesting_count)++
)
+ if (__
this_cpu_inc_return(xed_nesting_count) - 1
)
goto out;
#ifndef CONFIG_X86 /* No need for a barrier -- XCHG is a barrier on x86. */