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:
ab25ac0
)
x86/irq: Remove offline cpus from vector cleanup
author
Thomas Gleixner
<
[email protected]
>
Thu, 31 Dec 2015 16:30:50 +0000
(16:30 +0000)
committer
Thomas Gleixner
<
[email protected]
>
Fri, 15 Jan 2016 12:44:01 +0000
(13:44 +0100)
No point of keeping offline cpus in the cleanup mask.
Signed-off-by: Thomas Gleixner <
[email protected]
>
Tested-by: Borislav Petkov <
[email protected]
>
Tested-by: Joe Lawrence <
[email protected]
>
Cc: Jiang Liu <
[email protected]
>
Cc: Jeremiah Mahler <
[email protected]
>
Cc:
[email protected]
Cc: Guenter Roeck <
[email protected]
>
Cc:
[email protected]
#4.3+
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/kernel/apic/vector.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apic/vector.c
b/arch/x86/kernel/apic/vector.c
index fccfa3f5545c5ffcee79acd6ae9f5a9804d776e0..68d18b338e3ac6a44ef61f61c545ccf1335158a8 100644
(file)
--- a/
arch/x86/kernel/apic/vector.c
+++ b/
arch/x86/kernel/apic/vector.c
@@
-202,8
+202,12
@@
next_cpu:
return -ENOSPC;
update:
- /* Cleanup required ? */
- d->move_in_progress = cpumask_intersects(d->old_domain, cpu_online_mask);
+ /*
+ * Exclude offline cpus from the cleanup mask and set the
+ * move_in_progress flag when the result is not empty.
+ */
+ cpumask_and(d->old_domain, d->old_domain, cpu_online_mask);
+ d->move_in_progress = !cpumask_empty(d->old_domain);
d->cfg.vector = vector;
cpumask_copy(d->domain, vector_cpumask);
success: