projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c4c4e
)
x86/apic: Remove local var in flat_send_IPI_allbutself()
author
Borislav Petkov
<
[email protected]
>
Mon, 11 Dec 2017 11:54:44 +0000
(12:54 +0100)
committer
Ingo Molnar
<
[email protected]
>
Mon, 11 Dec 2017 13:47:16 +0000
(14:47 +0100)
No code changed:
# arch/x86/kernel/apic/apic_flat_64.o:
text data bss dec hex filename
1838 624 0 2462 99e apic_flat_64.o.before
1838 624 0 2462 99e apic_flat_64.o.after
md5:
aa2ae687d94bc4534f86ae6865dabd6a
apic_flat_64.o.before.asm
42148da76ba8f9a236c33f8803bd2a6b
apic_flat_64.o.after.asm
md5 sum is different due to asm output offsets changing.
Signed-off-by: Borislav Petkov <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/apic/apic_flat_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apic/apic_flat_64.c
b/arch/x86/kernel/apic/apic_flat_64.c
index aa85690e9b6416b797db8129c8f1cbd7606bf687..f58a49769bc6be706fc5335658407f49aa1276dc 100644
(file)
--- a/
arch/x86/kernel/apic/apic_flat_64.c
+++ b/
arch/x86/kernel/apic/apic_flat_64.c
@@
-84,12
+84,8
@@
flat_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector)
static void flat_send_IPI_allbutself(int vector)
{
int cpu = smp_processor_id();
-#ifdef CONFIG_HOTPLUG_CPU
- int hotplug = 1;
-#else
- int hotplug = 0;
-#endif
- if (hotplug || vector == NMI_VECTOR) {
+
+ if (IS_ENABLED(CONFIG_HOTPLUG_CPU) || vector == NMI_VECTOR) {
if (!cpumask_equal(cpu_online_mask, cpumask_of(cpu))) {
unsigned long mask = cpumask_bits(cpu_online_mask)[0];