x86/apic: Use non-atomic operations when possible
authorNadav Amit <namit@vmware.com>
Thu, 13 Jun 2019 06:48:13 +0000 (23:48 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jun 2019 12:07:23 +0000 (14:07 +0200)
commitdde3626f815e38bbf96fddd5185038c4b4d395a8
treeb1f5afd13569b62d7b49da4f7e2a9dc1163db1bd
parent748b170ca19ab67b891279cce258d1defe73c5ab
x86/apic: Use non-atomic operations when possible

Using __clear_bit() and __cpumask_clear_cpu() is more efficient than using
their atomic counterparts.

Use them when atomicity is not needed, such as when manipulating bitmasks
that are on the stack.

Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20190613064813.8102-10-namit@vmware.com
arch/x86/kernel/apic/apic_flat_64.c
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/smp.c