mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-09-22 04:32:41 +00:00
xen: Use this_cpu_inc_return
__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>
This commit is contained in:
parent
cd85fc58cd
commit
b2e4ae6975
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue